Answer the question
In order to leave comments, you need to log in
How to exclude the output of any program from syslog-ng?
Welcome all.
Neither in man'e, nor in Google did I find information on how to exclude any program from the exhaust.
For example: conky kicks amixer every second for volume level and this is reflected in the log.
Is it possible to filter or only to /dev/null (then there will be no output to conky) ?
Answer the question
In order to leave comments, you need to log in
Thank you all !
This helped:
Defaults logfile=/var/log/sudolog
Defaults:fil !syslog
Defaults:mumsic !syslog
Judging by the example of your log, you need to disable sudo logging (or move it to a separate file).
For example like this:
# sudo visudo /etc/sudoers
Defaults logfile=/var/log/sudolog
Defaults syslog=off
Try to make a rule:
destination devnull { file("/dev/null"); };
filter conky { program("conky"); };
log { source(src); filter(conky); destination(devnull); };
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question