How to make syslog to write to a new file every 10 mins
Hi, I can make it to write to a new file every hour by the following destination firewall {file ("var/log/firewall/firewall_$YEAR_$MONTH_$DAY_$HOUR")} but how I can make it to write to a new file every 5 minutes or 10 minutes? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On 8/3/05, Hermann Tse <htse@yahoo.com> wrote:
I can make it to write to a new file every hour by the following
destination firewall {file ("var/log/firewall/firewall_$YEAR_$MONTH_$DAY_$HOUR")}
but how I can make it to write to a new file every 5 minutes or 10 minutes?
That's kind of a strange feature to ask for. Can you explain what you are trying to achieve? I seldom see more than couple of hundred megabytes in any one file when I use a new file for each hour, and it's a lot easier to write scripts to post-process when I can match filenames with simple regular expressions. Kevin
On Wed, 2005-08-03 at 14:42 -0700, Hermann Tse wrote:
Hi,
I can make it to write to a new file every hour by the following
destination firewall {file ("var/log/firewall/firewall_$YEAR_$MONTH_$DAY_$HOUR")}
but how I can make it to write to a new file every 5 minutes or 10 minutes?
you can create a new file every minute if you also included the $MIN macro, however currently there's no way to do that currently. -- Bazsi
participants (3)
-
Balazs Scheidler
-
Hermann Tse
-
Kevin