Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2008 15:33:54 -0500
From:      Don Read <donread@sbcglobal.net>
To:        Zbigniew Szalbot <z.szalbot@lcwords.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Fwd: newsyslog.conf / rotating logs based on size AND time
Message-ID:  <20080922153354.17308c21@sbcglobal.net>
In-Reply-To: <8f0962110046cceccab7b56c1a8dd37d@relay.lc-words.com>
References:  <8f0962110046cceccab7b56c1a8dd37d@relay.lc-words.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?
cat /etc/crontab
...
# 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
#

Regards,
-- 
Don Read                                   donread@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080922153354.17308c21>