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

simonst at wellsfargo.com simonst at wellsfargo.com
Fri Mar 16 19:22:26 CET 2007


I'm still getting a syntax error when I add "overwrite_if_older(604800)" to
a file driver, in my syslog-ng 2.0rc4.  

One person suggested adding semicolons, but that made no difference.  

I searched the source, but couldn't find "overwrite_if_older" in any *.c or
*.h files.

Does anyone know if that parm is supported? It's described in Table 3.6.
"Available options for file()", section 3.2.1 of the syslog-ng 2.0 reference
manual.


-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu
[mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Simons, Tom
Sent: Monday, March 12, 2007 4:10 PM
To: syslog-ng at lists.balabit.hu
Subject: [syslog-ng] overwrite_if_older() option causes syntax error

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: 5621 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070316/67ac551b/smime.bin


More information about the syslog-ng mailing list