[syslog-ng] Stats dropped
Hari Sekhon
hpsekhon at googlemail.com
Thu Feb 1 19:24:09 CET 2007
yes this is what I was thinking but the server also dropped some. I will
try to increase the fifo by the amount of dropped stats on the server,
make it 40000 instead of 20000 and then on the agents give them a fifo
of 30000 just to be safe. From what I've measure it doesn't seem to take
much ram so this should be ok. Although this wasn't done at the times of
heavier load when the machine's fifo is filling up.
If anybody knows more on this or has some info on the mem consumption
related to doing this then please let me know
Thanks
Hari Sekhon
Mike wrote:
>
>
>> options {
>> chain_hostnames(off);
>> sync(0);
>> stats(43200);
>> };
>> source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
>> destination messages { file("/var/log/messages"); };
>> destination net { tcp("x.x.x.x" port(xxx)); };
>> log { source(src); destination(messages); };
>> log { source(src); destination(net); };
>>
>>
>> Most of the time the dropped stats are 0 but sometimes they are 3000
>> or so and occasionally 20000-50000! Usually this happens on the mail
>> server or the log server which are both heavily used machines.
>>
>> One of the destinations is obviously backing up, likely the tcp
>> destination for the mail server. On the logserver I already have
>> log_fifo_size(20000); to try to alleviate this. I would have thought
>> this was reasonable. I don't think this increases memory consumption
>> too much either, at least not by today's standards, the server has
>> the nominal 1GB of Ram.
>>
>> Should I increase this on the server and add it to on the agents too?
>>
>
> you should look at adding the log_fifo_size() on the agents. the way I
> read it above, your log sources don't have an increased log_fifo_size().
>
> hrm. to make that more clear: you should increase the log_fifo_size()
> on the systems where you are seeing the drops.
>
>> From what I remember the memory for this is dynamically allocated, and
> cleaned up afterwards..so I would even set it at 100,000 or 200,000.
>
>
>
> Mike
> _______________________________________________
> syslog-ng maillist - syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
>
More information about the syslog-ng
mailing list