[Pdns-users] Log written in multiple files
b.candler at pobox.com
Wed Jul 29 08:51:01 UTC 2020
On 29/07/2020 08:10, Pierrick CHOVELON via Pdns-users wrote:
> But logs are still written in /var/log/messages
> Have you got any idea ?
This is an rsyslog issue, not a pdns issue.
You probably have /etc/rsyslog.d/50-default.conf containing
which says "log everything to /var/log/syslog, except auth and authpriv"
To fix this, you should put your rules in an earlier file, say
/etc/rsyslog.d/30-pdns.conf, with instructions not to let the messages
progress to later rules. I think this should work:
local5.=info -/var/log/pdns/pdns.info <http://pdns.info>
If not, I'm sure this will:
<http://pdns.info> & stop local5.=warn
-/var/log/pdns/pdns.warn & stop local5.err
/var/log/pdns/pdns.err & stop
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users