>Thanks for your reply - The simpler the better...OK, I think I follow 
>your suggestion. Below I have listed my appended contents of 
>/etc/cron.daily/logrotate.conf.

My /etc/cron.daily/logrotate file looks like this:

#!/bin/sh

/usr/bin/analog
/usr/bin/logrotate /etc/logrotate.conf

The log rotation is being handled by the logrotate utility, using the params given in 
/etc/logrotate.conf, and I'm running analog right ahead of that so logs aren't "in 
transit" when I'm trying to parse data.

>Could I please ask you (or anyone) to knidly check if this is alright? 
>One thing in particular, the '/sbin/killall -HUP httpd' command is given 
>as an example in the man logrotate file. Is this required??

Basically what that command is doing is saying to httpd (the Apache daemon) in this 
case "Okay, let go of the files for a moment and reattach to them because you've got a 
fresh new log file to work with." The -HUP signal is designed to 'soft-restart' a 
particular process, generally used when there's been a change to its config file(s).

>
>---APPENDED TO THE BOTTOM OF LOAGROTATE.CONF---
># system-specific logs may be configured here
># Added by BC 22/5/00

[snipped for space]

>-----------------------------------------------
>
>All I then need to do is set company-domains.cfg:
>LOGFILE /home/httpd/company-domains.net/logs/combined_log.1
>
>i.e. pointing to the rotated log file (which souldn't be compressed until 
>the next rotation)? If this is right, it is a very neat solution.

I'm going to guess that you're dealing with virtual hosts? I freely admit that I have 
no experience in this area. I'm using only the stock access_log file that lives in 
/var/log/httpd as per the stock RedHat install. If I'm reading what you're doing 
correctly, though, it ought to work. Be prepared for someone much smarter than I am to 
offer a better suggestion, though.


Karel P Kerezman
Network Administrator
Entercom Radio Portland
KGON KKSN-AM/FM KNRK KFXX KRSK
Visit the Lab: http://washuu.kgon.com

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d- s: a- C++ UL P+ L++++ E---- W++ N+++ o-- K- w--- 
O M V-- PS+ PE Y+ PGP t 5++ X-- R tv+ b+++ DI++ D++ 
G e h---- r+++ y++++ 
------END GEEK CODE BLOCK------

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to