15 Aug
2010
15 Aug
'10
6:52 p.m.
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?