From 3718169383b5759349c86af1b1f671203aad979d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 11 Sep 2015 14:24:22 +0300 Subject: [PATCH] note that /dev/log link may need manual fixing --- syslog-ng-simple.conf | 4 ++++ syslog-ng.conf | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/syslog-ng-simple.conf b/syslog-ng-simple.conf index afd2064..357b502 100644 --- a/syslog-ng-simple.conf +++ b/syslog-ng-simple.conf @@ -23,9 +23,13 @@ options { source s_sys { file ("/proc/kmsg" program_override("kernel")); + unix-stream("/dev/log" max-connections(1000) log_iw_size(100000)); # if using systemd, comment out the line above, and uncomment line below # unix-dgram("/run/systemd/journal/syslog"); +# NOTE: if you are running under systemd and fixed config then you may need to manually fix /dev/log symlink: +# ln -s /run/systemd/journal/dev-log /dev/log +# internal(); }; diff --git a/syslog-ng.conf b/syslog-ng.conf index 2b5f6c9..5936c16 100644 --- a/syslog-ng.conf +++ b/syslog-ng.conf @@ -22,7 +22,11 @@ options { threaded(yes); }; -source s_sys { +source s_sys { +# NOTE: +# if you are running under systemd and just merged config then you may +# need to manually fix /dev/log symlink: +# # ln -s /run/systemd/journal/dev-log /dev/log system(); internal(); }; -- 2.44.0