Proper way to change the rotation of apache logs?
- From: David Miller <millerdc@xxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 15:47:08 -0800
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@xxxxxx
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.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Prev by Date: Using flat-screen monitor with RedHat 9
- Next by Date: WTA: Warning: Remote Host Identification
- Previous by thread: Using flat-screen monitor with RedHat 9
- Next by thread: RE: Proper way to change the rotation of apache logs?
- Index(es):
Relevant Pages
- Re: HOW TO PARSE A VAST FILE!
... It is not apache log or standard logfile. ... > Ok this is trumpet
blowing but if the log file is an apache log file ... > and available on CPAN.
... (comp.lang.perl.misc) - Re: Perl module for analyzing log files?
... > Can anyone recommend a module that I can use to break apart Apache log ...
We are doing out log file analysis on a separate machine and I ... (comp.lang.perl.misc) - Perl module for analyzing log files?
... Can anyone recommend a module that I can use to break apart Apache log ... We
are doing out log file analysis on a separate machine and I ... (comp.lang.perl.misc)