Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2004 14:05:00 -0400
From:      "JJB" <Barbish3@adelphia.net>
To:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Force newsyslog to rotate from custon script
Message-ID:  <MIEPLLIBMLEEABPDBIEGKENCFNAA.Barbish3@adelphia.net>

next in thread | raw e-mail | index | archive | help
Problem description: My ipfilter log is rotated using
newsyslog.conf. The file is rotated on file size option. I have
custom script that reads the log and builds email containing list of
abusive source IP address. This custom script is included in the
daily management report process. Problem is that on days that there
is a lot of blocked traffic the log may rotate multiple times and my
daily management report script only runs against the current active
log.

Is their some way to keep the log defined in newsyslog.conf without
any rotate option and add something to my custom script to tell
newsyslog to rotate the log after the script has processed the
current active log file?



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