Re: Rotating apache logs

Top Page
Attachments:
Message as email
+ (text/plain)
+ signature.asc (application/pgp-signature)
+ (text/plain)
Delete this message
Reply to this message
Author: Jason Holtzapple
Date:  
To: Main PLUG discussion list
Subject: Re: Rotating apache logs
On 06/25/2010 04:03 PM, Eric Shubert wrote:
> It appears that there are 2 ways of rotating apache logs.
>
> Logrotate can be used, in which case apache needs to be restarted after
> the logs are rotated.


Yes, but this is usually a graceful restart, at least.

> There is also a rotatelogs program included with apache that controls
> log rotation (http://httpd.apache.org/docs/2.2/programs/rotatelogs.html).
>
> Does anyone have a preference, or know which is considered to be best
> practice? I'm inclined to lean toward the later.


I've always used the system log rotator (logrotate, logadm, etc). If
you're concerned about the effects of a restart you could try
logrotate's copytruncate option.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss