[syslog-ng]destination driver question

Dave Patterson syslog-ng@lists.balabit.hu
Mon, 24 Mar 2003 11:05:15 -0800 (PST)


Hi all,

Im' running syslog-ng version 1.6.0rc1 on FreeBSD 4.7

I'm having great difficulty in getting the "remove_if_older" file option
to work.  My current syslog-ng.conf has this line which works fine:
destination d_program  { file("/var/syslog-ng/$HOST/$PROGRAM/$MONTH_$DAY"
perm(0640)); };

I tried to add the remove_if_older option like so:

destination d_program  { file("/var/syslog-ng/$HOST/$PROGRAM/$MONTH_$DAY"
perm(0640)); remove_if_older("604800"); };

when I add the remove option, I get a parse error.

I have also tried to added it to the options line:

options { long_hostnames(off); sync(0); create_dirs(yes);
chain_hostnames(on); time_reopen (30); remove_if_older("604800"); };

same error, does anyone have any ideas ?

Dave Patterson
Open LabNet Staff
patterson29@llnl.gov

To repair, press this button:
        NO... NOOO NOT THAT ONE !!! .............
                Fatal Exception Error:
                press any key to reboot