Date: Thu, 7 Aug 2008 13:12:45 -0400 From: Garance A Drosehn <gad@FreeBSD.org> To: Zbigniew Szalbot <z.szalbot@lcwords.com>, User Questions <freebsd-questions@FreeBSD.org> Subject: Re: newsyslog.conf / rotating logs based on size AND time Message-ID: <p06240804c4c0d42047e4@[128.113.24.47]> In-Reply-To: <48980C83.9040009@lcwords.com> References: <48980C83.9040009@lcwords.com>
next in thread | previous in thread | raw e-mail | index | archive | help
At 10:17 AM +0200 8/5/08, Zbigniew Szalbot wrote: > >My question is how can I make sure the logs are rotated when >they grow too large AND they are also rotated at a specified >point in time (start of a new month). > >I am reading man newsyslog.conf and it says: > >If the when field contains an asterisk (`*'), log rotation >will solely depend on the contents of the size field. > >To me it seems to say that when it is not an asterisk (i.e. >when I enter a date), the log rotation is not based solely on >size factor, which in other words should mean it is also based >on time? I haven't looked closely at newsyslog in awhile. I started to write up a reply to you, but in a quick test newsyslog does not seem to be working the way that I expected it to work. It might just be that I was too tired to think straight when I was testing. I'll try to get back to this sometime later today. -- Garance Alistair Drosehn = drosehn@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06240804c4c0d42047e4>