[syslog-ng] syslog-ng 2.0.5 dropped messages - totally confused

Evan Rempel erempel at uvic.ca
Wed Mar 5 20:50:14 CET 2008

Please bear with me. This is a little involved.

We have a bunch of servers, but I am only focusing on one today.
It logs everything to two syslog-ng central servers.
A really simple config file

options { sync(0); log_fifo_size(50000); use_fqdn(yes); keep_hostname(no);
           chain_hostnames(yes); time_reap(60); time_reopen(5); };

source local { unix-stream("/dev/log" max-connections(200));
                file("/proc/kmsg" log_prefix("kernel: "));

template standard_file	{ template("$ISODATE $FULLHOST $FACILITY.$LEVEL $MESSAGE\n"); template_escape(no); };

destination syslog 	{ file("/var/log/syslog.$YEAR$MONTH$DAY.000000"
			owner("root") group("syslogs") perm(0640) template(standard_file)); };

destination syslogServer1 { tcp("server1" log_fifo_size(50000) ); };
destination syslogServer2 { tcp("server2" log_fifo_size(50000) ); };

log { source(local); destination(syslog); destination(syslogServer1); destination(syslogServer2); };

Anyhow. On the two central servers, I different numbers of records in the files, and the statistics
on the sender show

2008-03-04T23:26:38-08:00 local at caribou.comp.uvic.ca syslog.info syslog-ng[3391]: Log statistics; 

The problem is that the files on disk show

caribou	16257954
server1	1742054
server2	965475

and that just doesn't add up. Neither server shows any dropped messages.
I know that the statistics miss some time at the beginning of the day
and at the end of the day, but the numbers don't even come close.
Caribou stats show that no messages are dropped to server2, and lots dropped
to server1, however, server2 actually wrote more messages to disk. Server 1
is also about 30% faster than server2.

I am willing to listen to any explanation, but I am beginning to think that
the statistics that are logged are wrong.


More information about the syslog-ng mailing list