How to exclude from the syslog-ng output of any program?

Greetings to all.
Neither in man nor in Google not found information about how to exclude from the exhaust or any app.
For example: conky kicks every second of amixer for the volume level and this is reflected in the log.
There is a possibility to filter or only at /dev/null(there will be no output in conky) ?
June 8th 19 at 16:38
3 answers
June 8th 19 at 16:40
Solution
All thanks!
It helped:
Defaults logfile=/var/log/sudolog
Defaults:fil !syslog
Defaults:mumsic !syslog
June 8th 19 at 16:42
Judging by the example of your log you need to disable logging sudo (or move it to a separate file).
For example:
# sudo visudo /etc/sudoers
Defaults logfile=/var/log/sudolog
Defaults syslog=off
June 8th 19 at 16:44
Try to make a rule:

destination devnull { file("/dev/null"); };
conky filter { program("conky"); };
log { source(src); filter(conky); destination(devnull); };
And then pasupuleti service (restart) or reload the configuration file (reload) - dandre.Emard39 commented on June 8th 19 at 16:47
That's not so simple. Made with "filter conky" and still did not work, tried to change conky on amixer and also nothing.
Exhaust:
Bold
Feb 8 16:20:22 delvin sudo[9334]: fil : TTY=unknown ; PWD=/home/fil ; USER=root ; COMMAND=/usr/bin/amixer -c /dev/snd/by-path/pci-0000:0
0:1b.0 get Master
..................
Feb 8 16:20:22 delvin sudo[9351]: mumsic : TTY=unknown ; PWD=/home/mumsic ; USER=root ; COMMAND=/usr/bin/python3.4 /home/mumsic/progs/num-ubu.py
..................
/var/log/emerge.log
Feb 8 16:20:23 delvin sudo[9424]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 8 16:20:23 delvin sudo[9420]: mumsic : TTY=unknown ; PWD=/home/mumsic ; USER=root ; COMMAND=/usr/bin/python3.4 /home/mumsic/progs/num-ubu.py
..................
Feb 8 16:20:24 delvin sudo[9461]: mumsic : TTY=unknown ; PWD=/home/mumsic ; USER=root ; COMMAND=/usr/bin/python3.4 /home/mumsic/progs/num-ubu.py
Feb 8 16:20:24 delvin sudo[9461]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 8 16:20:24 delvin sudo[9467]: fil : TTY=unknown ; PWD=/home/fil ; USER=root ; COMMAND=/usr/bin/amixer -c /dev/snd/by-path/pci-0000:00:1b.0 get Master

The Python is also true - the icon of the layout shows on the second Seat'E. - Kaelyn5 commented on June 8th 19 at 16:50

Find more questions by tags LinuxSyslog-ng