[syslog-ng] 3.1.2 OSE $SEQNUM Documentation Error?

Mike Civil mike at duncodin.org
Sun Aug 15 19:52:06 CEST 2010


I've been playing with Postgresql and 3.1.2 OSE on Gentoo and found a 
discrepancy when using the $SEQNUM macro and logging and recording on 
the same host.

The 3.1 (& 3.2) docs state "The sequence number increases for every 
message, and is not lost even if syslog-ng is reloaded or restarted." 
However I noticed that each time syslog-ng is restarted the value 
returned by $SEQNUM starts at 1.

A quick check of the source code (specifically templates.c and misc.h) 
shows no logic to keep state, the value is initialised to 1 on program 
start.

Is this an OSE/PE difference, a documentation hiccup or (more likely!) 
have I got confused somewhere?


More information about the syslog-ng mailing list