PowerDNS

From Lolly's Wiki
Revision as of 19:08, 30 June 2016 by Lollypop (talk | contribs) (Die Seite wurde neu angelegt: „Kategorie: DNS =PowerDNS Server= ==Logging with systemd and syslog-ng== 1. Tell the journald of systemd to forward messages to syslog: In <i>/etc/system…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Kategorie: DNS

PowerDNS Server

Logging with systemd and syslog-ng

1. Tell the journald of systemd to forward messages to syslog: In /etc/systemd/journald.conf set it from

#ForwardToSyslog=yes

to

ForwardToSyslog=yes

Then restart the journald

# systemctl restart systemd-journald.service

2. Tell syslog-ng to take the dev-log-socket from journald as input:

Change the part in /etc/syslog-ng/syslog-ng.conf from

source s_src {
       system();
       internal();
};

to

source s_src {
       system();
       internal();
       unix-dgram ("/run/systemd/journal/dev-log"); 
};