Proper way to change the rotation of apache logs?
David Miller
millerdc at fusion.gat.com
Mon Oct 30 23:47:08 UTC 2006
I would like to adjust the amount of space each apache log can take
up and how many copies are saved. According to RH in this kbase article
http://kbase.redhat.com/faq/FAQ_35_2798.shtm
I want to edit the logrotate.conf file. They even have a listing in
the article for an httpd log file.
------------------------------------------
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www at my.org
size=100k
sharedscripts
postrotate
/sbin/killall -HUP httpd
endscript
}
------------------------------------------
Is the first line a typo? It makes reference to two different files.
Also the log files in /var/log/httpd/ have an underscore between the
name and log like access_log., error_log.
More information about the redhat-list
mailing list