> i have already worked out how to run analog with differing
> configuration files so that i
can read the logs i want and put the
> output files in the directories i want. i'm just not
quite sure how to
> tackle the rotation part.
>
The following script uses the DNSTRAN
helper application, rotates the Apache log file, gzips the logs, and runs
Analog. Watch forline wraps!
#!bin bash
DATE=`/bin/date +'%Y%m%d%H%M'`
cat
/usr/local/apache/logs/access_log > /usr/local/apache/logs/dnstranlog
cat
/dev/null > /usr/local/apache/logs/access_log
cd
/usr/local/apache/dnstran
./dnstran /usr/local/apache/logs/dnstranlog
cp
/usr/local/apache/logs/dnstranlog.gz
/usr/local/apache/dnstran/logs/access_log${DATE}.gz
rm -f
/usr/local/apache/logs/dnstranlog*
/usr/bin/analog
+------------------------------------------------------------------------
| This is the analog-help mailing list. To unsubscribe from this
| mailing list, go to
| http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
| List archives are available at
| http://www.mail-archive.com/[email protected]/
| http://lists.isite.net/listgate/analog-help/archives/
| http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------