[Techtalk] apache request_log rotation - logrotate

Tricia Bowen tricia.bowen at gmail.com
Tue Sep 9 13:39:39 UTC 2008


Hi Chris,
Here is a link to a logrotate howto:
http://www.ducea.com/2006/06/06/rotating-linux-log-files-part-2-logrotate/.
It has some info on how to setup your logrotate.conf file.
--Tricia

On Tue, Sep 9, 2008 at 8:07 AM, Chris Henderson <henders254 at gmail.com>wrote:

> I am trying to rotate this log at 2200 each night on OpenSUSE 10.3. I
> added this to /etc/logrotate.d/apache2 file
>
> I, then, edited root's crontab and added 0 22 * * *
> /usr/sbin/logrotate -f /etc/logrotate.d/apache2. I run the script
> manually and can see logrotate does nothing - the log file is still
> sitting there - 192K in size. Logrotate rotates the log in it's own
> time. I am not sure how it does this though - could it be by
> cron.daily?
>
> Here is my /etc/logrotate.d/apache2 file:
>
> /var/log/apache2/ssl-request_log {
> dateext
> daily
> maxage 365
> missingok
> create 644 root root
> postrotate
> /etc/init.d/apache2 reload
> endscript
> }
>
> This file already has a lot of other entries by Apache/ OpenSUSE. I
> just added the above to the file.
>
> I know there are many other programs or Apache modules out there
> that'll do the job. But I want to stick to whatever comes with the
> base sytem: logrotate.
>
> Thanks for any help.
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>



-- 
Tricia Bowen
Senior Consultant
tricia.bowen at gmail.com
http://www.linkedin.com/in/triciabowen

mobile: 917.575.7745

See who we know in common Want a signature like this?


More information about the Techtalk mailing list