[Pdns-users] Log written in multiple files
Markus.Ehrlicher at komsa.de
Wed Jul 29 07:46:07 UTC 2020
what kind of OS do you use?
„if $programname == 'pdns_recursor' then stop“ in your syslog-configuration should do the trick.
Von: Pdns-users <pdns-users-bounces at mailman.powerdns.com> Im Auftrag von Pierrick CHOVELON via Pdns-users
Gesendet: Mittwoch, 29. Juli 2020 09:11
An: pdns-users at mailman.powerdns.com
Betreff: [Pdns-users] Log written in multiple files
I'm struggling with the logging configuration. I enabled the syslog logging on a pdns-recursor.
So I got three files :
As my server is being more and more used, it generates more logs and I can see that logs are also written in /etc/var/log/syslog and messages which will used a lot of space ...
I tried with many configuration, but can't achieve what I want :
* logs only in those three files not elsewhere
Here is the execstart of the service
ExecStart=/usr/sbin/pdns_recursor --daemon=no --write-pid=no --log-timestamp=no
I put this line in the service definition to disable the logging in /var/log/syslog
But logs are still written in /var/log/messages
Have you got any idea ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users