[Pdns-users] Log written in multiple files
Brian Candler
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
*.*;auth,authpriv.none -/var/log/syslog
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>
local5.=warn -/var/log/pdns/pdns.warn
local5.err /var/log/pdns/pdns.err
local5.* stop
If not, I'm sure this will:
local5.=info -/var/log/pdns/pdns.info
<http://pdns.info> & stop local5.=warn
-/var/log/pdns/pdns.warn & stop local5.err
/var/log/pdns/pdns.err & stop
HTH,
Brian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200729/10022145/attachment-0001.htm>
More information about the Pdns-users
mailing list