How to prevent a specific application from logging to syslog?

Hello, is ubuntu 14-04 server, functions as a software router, there is an application collected from sources (coovachilli), I noticed that this app is quite shit in syslog system messages that are essentially garbage. And it turns out that for the night clogged the entire /var (80) gb. Temporarily decided that the cleanup script logs every hour. Also, the problem is that the daemon rsyslog loads the CPU to 60%. In the config app there are no directives concerning the logging. In rsyslog.d/ also found nothing. The question is how you can prevent the entry in syslog to a separate app? SPS.
June 5th 19 at 21:27
2 answers
June 5th 19 at 21:29
Yes, that's just in rsyslog, then a piece of cake. In rsyslog.conf add:
if $programname == 'mysuperpuperprogram' then /dev/null

and all, all rsyslog messages from a specified program go where is the place never ends :)
A small addition to this answer.

Temporarily decided that the cleanup script logs every hour.

You can not redirect logs to /dev/null, just write to another file, removing them periodically (well, it is if you potentially might need).
r-syslog configure log rotation according to their length, you can just leave the last M log N of megabit and older, he will remove. Googling on the subject radojewski mana rsyslog (even if you have not RedHat, there is no difference, and other appropriate addicts in rsyslog to me somehow did not come across)


And what is your loglevel? There is a suspicion that you have DEBUG, and he needs to write a lot, but in the case. (By the way, Manet clearly States that in the debug logs, you risk exposing confidential information, personal data, etc.) - rozella_Robel14 commented on June 5th 19 at 21:32
June 5th 19 at 21:31
As an option, to disable the application to work with UDP port 514
Or dig into the config rsyslog and do not forget juzat man
The information on this subject is really small.
The question of how to deny traffic on port localhost localhost? I have already dug, it did not, he wrote here - rozella_Robel14 commented on June 5th 19 at 21:34

Find more questions by tags System administrationNetwork administrationLinuxUbuntu