Re: apache log files rotation
Dave McCammon wrote: --- fbsd_user <[EMAIL PROTECTED]> wrote: Can apache logs be rotated by /etc/newsyslog.conf? If not, how is it normally done? ___ Here is the relevent portion of my newsyslog.conf /var/log/httpd-access.log 640 14*$D0 Z /var/run/httpd.pid /var/log/httpd-error.log 640 14*$D0 Z /var/run/httpd.pid "man newsyslog" for more info on the fields. Just a hint in case you plan on running a web statistics program over the access log: add 'B' to the flags column for 'httpd-access.log', resulting in 'BZ'. This will omit the 'logfile turned over due to ...' lines generated by 'newsyslog', which the statistics program may otherwise complain about. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers [EMAIL PROTECTED] | http://www.escapebox.net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache log files rotation
fbsd_user wrote: > Can apache logs be rotated by /etc/newsyslog.conf? > If not, how is it normally done? > Hello, Apart from what has already been said, you might also want to check http://www.freebsddiary.org/rotatelogs.php for more details. Dejan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache log files rotation
--- fbsd_user <[EMAIL PROTECTED]> wrote: > Can apache logs be rotated by /etc/newsyslog.conf? > If not, how is it normally done? > > ___ > Here is the relevent portion of my newsyslog.conf /var/log/httpd-access.log 640 14*$D0 Z /var/run/httpd.pid /var/log/httpd-error.log 640 14*$D0 Z /var/run/httpd.pid "man newsyslog" for more info on the fields. __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache log files rotation
* fbsd_user <[EMAIL PROTECTED]> [20040303 17:14]: wrote: > Can apache logs be rotated by /etc/newsyslog.conf? > If not, how is it normally done? You may need to send apache SIGUSR1 (signal 30) to tell it to reopen its logfiles. I do this with squid but haven't tried with apache.. There is no harm in trying, you know? It wouldn't blow your box ;) /path/to/logfile www:www 644 7 * @T00 J /path/to/apache/pid 30 -Wash http://www.netmeister.org/news/learn2quote.html -- +==+ |\ _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]> Zzz /,`.-'`'-. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +==+ One of the lessons of history is that nothing is often a good thing to do and always a clever thing to say. -- Will Durant ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
apache log files rotation
Can apache logs be rotated by /etc/newsyslog.conf? If not, how is it normally done? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"