[Pdns-users] Logging to /var/log/messages
Ian Goldstein (BLOOMBERG/ 120 PARK)
igoldstein5 at bloomberg.net
Thu Sep 14 14:32:29 UTC 2023
Adding stop was unsuccessful. I even made this the first directive in my /etc/rsyslog.d directory (00-pdns.conf).
What is also confusing me is the following.
In the pdns.conf file, I set logging-facility=1.
The log entry that appears in my pdns.log is:
Sep 14 09:07:52 xxxxxx-232 pdns: AXFR of domain 'foo.bar.com' to 220.127.116.11 finished
The entry that appears in /var/log/messages:
Sep 14 09:26:30 xxxxxx-209 pdns_server: AXFR of domain 'foo.bar.com' initiated by 18.104.22.168
also, the output from journalctl shows 2 entries
Sep 14 10:22:41 xxxxxx-209 pdns_server: AXFR of domain 'foo.bar.com' to 22.214.171.124finished
Sep 14 10:22:41 xxxxxx-209 pdns: AXFR of domain 'foo.bar.com' to 126.96.36.199 finished
I kick off pdns via systemd: /usr/sbin/pdns_server --guardian=no --daemon=no --log-timestamp=no --write-pid=no
I am running version: Sep 14 10:31:31 PowerDNS Authoritative Server 4.1.14 (C) 2001-2018 PowerDNS.COM BV
Thanks in advance
From: b.candler at pobox.com At: 09/14/23 02:58:28 UTC-4:00To: Ian Goldstein (BLOOMBERG/ 120 PARK ) , pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] Logging to /var/log/messages
On 13/09/2023 22:48, Ian Goldstein (BLOOMBERG/ 120 PARK) via Pdns-users wrote:
While I am successfully logging to /var/log/pdns.log, I am also logging to /var/log/messages which I do not want.
That question is entirely about rsyslog and not powerdns, but in short you'll need something like this:
# Logging for powerdns
# facility-specific targets
You can see some more examples at https://www.rsyslog.com/doc/v8-stable/configuration/converting_to_new_format.html#converting-action-chains
("A common construct is to send messages to a remote host based on some message content and then not further process it")
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users