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

simonst at wellsfargo.com simonst at wellsfargo.com
Tue Mar 13 00:10:05 CET 2007


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); };
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5942 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070312/0bb4a066/smime.bin


More information about the syslog-ng mailing list