Stock installation of pgbouncer on centos 7. It logs connections/stats/etc to both /var/log/messages as well as /var/log/pgbouncer/pgbouncer.log. How do I stop it from logging to /var/log/messages?
You can create a blocklist for syslog
it might be on a location like /etc/rsyslog.d/01-blocklist.conf
just add something like
:msg,contains,"whatever pgbouncer is doing" ~
The ~
operator means it will discard the message
you can also use regex just check the docs:
http://www.rsyslog.com/doc/property_replacer.html