Fwd: newsyslog.conf / rotating logs based on size AND time
donread at sbcglobal.net
Mon Sep 22 21:00:37 UTC 2008
On Thu, 07 Aug 2008 17:25:39 +0200 Zbigniew Szalbot said:
> Hello all,
> Would anyone want to comment if it is possible to rotate logs with
> newsyslog based on size and time (using FBSD 7.0-Release)?
> Many thanks!
Have you considered using a separate .conf file?
# Rotate log files every hour, if necessary.
0 * * * * root newsyslog
# Rotate apache logs once a month
0 0 1 * * root newsyslog -f /usr/local/etc/nsl.http.conf
Don Read donread at sbcglobal.net
It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
More information about the freebsd-questions