Hi all,
I've got a newbie question regarding syslog.conf and I would appreciate your help with that.
I have a pretty much standard syslog config, apart from 'enabled' all.log and dedicated PostgreSQL logging at the end.
My question is: from what I understood, the last part sends all PostgreSQL messages to /var/log/postgresql.log - and that works fine. But how can I exclude PostgreSQL messages (and, probably, other messages) from /var/log/all.log?
I tried
and other options, but with no luck.
Any assistance would be appreciated.
Thank you.
I've got a newbie question regarding syslog.conf and I would appreciate your help with that.
I have a pretty much standard syslog config, apart from 'enabled' all.log and dedicated PostgreSQL logging at the end.
Code:
$ cat /etc/syslog.conf | grep -v "^#"
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
ftp.info /var/log/xferlog
cron.* /var/log/cron
*.=debug /var/log/debug.log
*.emerg *
*.* /var/log/all.log
!postgres
*.* /var/log/postgresql.log
My question is: from what I understood, the last part sends all PostgreSQL messages to /var/log/postgresql.log - and that works fine. But how can I exclude PostgreSQL messages (and, probably, other messages) from /var/log/all.log?
I tried
Code:
'*.*;postgres.none'
Any assistance would be appreciated.
Thank you.