[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: syslog log rotation

> 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