Can anyone help me with setting up logrotate to rollover apache and 
Analog files??

What I have done so far...
---APPENDED TO THE BOTTOM OF /etc/cron.daily/logrotate.conf---
# system-specific logs may be configured here
# Added by BC 22/5/00

# rotate log file:
       /home/httpd/mysite/logs/combined_log {
           create
           rotate 7
           daily
           errors [EMAIL PROTECTED]
           postrotate
                    /sbin/killall -HUP httpd
                    analog -G +g/home/httpd/cgi-bin/mysite.cfg
           endscript
           delaycompress
       }
# I may need a time delay here?

# rotate Analog file:
       /home/httpd/mysite/logs/combined_log.html {
#          don't create new log file as analog does this.
           nocreate

           rotate 7
           daily
           errors [EMAIL PROTECTED]
           endscript
           nocompress
       }
----------------------

In this way:
rollover combined_log        ---> combined_log.1
analog input(combined_log.1) ---> analog output(combined_log.html)
rollover combined_log.html   ---> combined_log.html.1

Therefore combined_log.1 will always match with combined_log.html.1

Hope I am on the right track!!!

Best regards, Brian

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to