[syslog-ng] overwrite_if_older() option causes syntax error

anthony lineham anthony.lineham at alliedtelesis.co.nz
Tue Mar 13 00:16:39 CET 2007


Hi Simon,

It looks like you're missing a few of these: ';' '}'

Regards
Anthony

>>> <simonst at wellsfargo.com> 03/13/07 12:10 PM >>> 
When I add option "overwrite_if_older(604800)" to a destination file in
syslog-ng.conf, it causes a syntax error.  I also tried option
"remove_if_older(604800)", and it also caused a syntax error.  

Can anyone see what's wrong?

# syslog-ng -V
syslog-ng 2.0rc4

# syslog-ng -dvFs
syntax error at 6

# sed -n 6p syslog-ng.conf
destination messages { file("/var/log/messages.$WEEKDAY"
overwrite_if_older(604800)

# cat syslog-ng.conf
options { long_hostnames(off); sync(0); };
source src { unix-stream("/dev/log"); internal(); };
source kernsrc { file("/proc/kmsg"); };
destination messages { file("/var/log/messages.$WEEKDAY"
overwrite_if_older(604800)
                            owner(root) group(cast_msgsecure) perm(0640));
};
destination logger1 { tcp("10.11.12.13" port(1234) template("$UNIXTIME $HOST
$MESSAGE\n") ); };
destination logger2 { tcp("10.12.13.14" port(1234) template("$UNIXTIME $HOST
$MESSAGE\n") ); };
log { source(src); source(kernsrc); destination(logger1);
destination(logger2);
                                    destination(messages); };




More information about the syslog-ng mailing list