How to stop repeated messages in Syslog-ng?
Hi, folks. I am using Syslog-ng as a Cacti's plugin. There are some messages which had been logged since last months. I'd like to ignore these specific messages, I mean, stop to login them. I tried to turn ON two variables in the php.ini... ignore_repeated_source = On ignore_repeated_errors = On ...but unsuccesfully (at least, I changed them and didn't restart any service...is it required?) Is that possible to stop them? Att, -- Wagner Pereira PoP-SP/RNP - Ponto de Presença da RNP em São Paulo CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo http://www.pop-sp.rnp.br Tel. +55 11 3091-8901 fone@RNP: 10158902
You can use filter() to stop messages from getting logged in your syslog-ng configuration file. See the docs at http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-v3.2-guid... (not sure if there's a Portuguese version). You may also try the Cacti forums to see if someone can help there. 2011/2/4 Wagner Pereira <wpereira@pop-sp.rnp.br>:
Hi, folks.
I am using Syslog-ng as a Cacti's plugin.
There are some messages which had been logged since last months.
I'd like to ignore these specific messages, I mean, stop to login them. I tried to turn ON two variables in the php.ini... ignore_repeated_source = On ignore_repeated_errors = On
...but unsuccesfully (at least, I changed them and didn't restart any service...is it required?)
Is that possible to stop them?
Att,
--
Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo http://www.pop-sp.rnp.br Tel. +55 11 3091-8901 fone@RNP: 10158902
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Fri, 2011-02-04 at 10:08 -0600, Martin Holste wrote:
You can use filter() to stop messages from getting logged in your syslog-ng configuration file. See the docs at http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-v3.2-guid... (not sure if there's a Portuguese version). You may also try the Cacti forums to see if someone can help there.
I don't know Cacti, but maybe suppress() option for the destination would help, which turns on syslogd style message suppression: "Last message repeated NNN times." -- Bazsi
participants (3)
-
Balazs Scheidler
-
Martin Holste
-
Wagner Pereira