Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Syslog-ng and journald

Featured Replies

I have installed syslog-ng which removes rsyslog, now I am trying to filter using journald as docker is set to log to journald.

 

If I create docker.conf in /etc/syslog-ng/conf.d with:

filter f_dockerd {"${.journald._COMM}" eq "dockerd"};

destination d_docker {
    file("/var/log/docker.log");
};

log {
    source(s_src);
    filter(f_dockerd);
    destination(d_docker);
};

 

Everything is logged go to docker.log, not just docker logs.  The journal source is already setup with system() I think as if I try to add a journald source I get the error there can only be one.

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.