A
A
Alex F2018-02-03 06:48:41
linux
Alex F, 2018-02-03 06:48:41

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

3 answer(s)
A
Alex F, 2018-02-08
@delvin-fil

Thank you all !
This helped:

Defaults logfile=/var/log/sudolog
Defaults:fil !syslog
Defaults:mumsic !syslog

P
Pavel Dunaev, 2018-02-08
@Pasha13666

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

P
prounixadmin, 2018-02-08
@prounixadmin

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 question

Ask a Question

731 491 924 answers to any question