apache log files

rszkutak

Verified User
Joined
Dec 22, 2003
Messages
173
Location
Scottsdale, AZ & Clam Gulch, AK
does anyone know how to increse the amount of days that the log files stay on the system to more than 5 days ??? I have customers griping about this, and their making my life difficult.

thoughts ?
R
 
/etc/logrotate.conf - configuration file
/etc/logrotate.d - the directory you'll need, check apache file in this directory.
 
Here is the logrotate file... looks like 4 weeks to me, bu DA doesnt keep them where the cusotmer can see them for 4 weeks.

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

# keep 4 weeks worth of backlogs
rotate 4

# 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
create 0664 root utmp
rotate 1
}

# system-specific logs may be also be configured here.




Here's the apache file...

/var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log {
missingok
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}



Thoughts ?
Rob
 
Hello,

By the 5 days, I'm assuming you're referring to the backed up apache tar.gz log files in /home/user/domains/domain.com/logs.

To increase the number from 5 to something higher, go to:
Admin Level -> Admin Settings -> Keep Number of Apache Log Backups.

Increase that value to a higher number.

John
 
Back
Top