[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syslog log rotation
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: syslog log rotation
- From: "David S." <davids_(_at_)_idiom_(_dot_)_com>
- Date: Sun, 25 Aug 2002 18:26:40 -0700
> on my openbsd box i have set my pflog as follows;
>
> /etc/newsyslog.conf
>
> /var/log/pflog 600 31 *
> $D0 ZB /var/run/pflogd.pid
>
> yes it doesn't rotate at midnight , instead it still
> rotate at 11am.
>
> can anyone redirect me to the flag to rotate at
> midnight ?
Try setting the fifth field in that line to "24" (for 24 hours
between rotation), and
touch -t <past midnight> /var/log/pflog.0.gz
where "<past midnight>" is something like "08240000". See the
man pages for 'newsyslog' and 'touch'.
David S.
Visit your host, monkey.org