changing logrotate apache

RichardF

Verified User
Joined
Jul 5, 2005
Messages
59
Location
Netherlands
I have read various topics about logrotate & apache but can't find my answer

it seems that the apache logs on a server of mine are rotated ever 3 or 4 hours. So I was looking for the file where this is set. But I can't find it.
Running centos 5

must be very simple..
 
and what line tells the interval for rotating apache log?


I find apache in logrotate.d
But still I don't find the interval setting
 
Last edited:
maybe it's to simple..

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 5

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
minsize 1M
create 0664 root utmp
rotate 1
}

still the apache logs are recycled every few hours
the last entry is from
66.249.66.209 - - [30/Jun/2010:15:14:50 +0200] "GET /website/evaluatie-kwaliteitsbewaking
just a few hours ago...

why are logs rotated every few hours while logrotate.conf says weekly
 
Are you referring to logs in /var/log/httpd or the per domain logs in /var/log/httpd/domains?
 
Back
Top