Re-enable journal forwarding to syslog
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 28 Nov 2014 13:43:25 +0000 (14:43 +0100)
committerMichael Biebl <biebl@debian.org>
Mon, 18 Jan 2021 12:45:15 +0000 (12:45 +0000)
Revert upstream commit 46b131574fdd7d77 for now, until Debian's sysloggers
can/do all read from the journal directly. See

  http://lists.freedesktop.org/archives/systemd-devel/2014-November/025550.html

for details. Once we grow a journal.conf.d/ directory, sysloggers can be moved
to pulling from the journal one by one and disable forwarding again in such a
conf.d snippet.

Gbp-Pq: Topic debian
Gbp-Pq: Name Re-enable-journal-forwarding-to-syslog.patch

man/journald.conf.xml
src/journal/journald-server.c
src/journal/journald.conf

index 959815a8f183c38d6db4fbba06a19dded3fbccb7..2134a1df36d3968d6713b5aea24d6859324d42d5 100644 (file)
         traditional syslog daemon, to the kernel log buffer (kmsg), to the system console, or sent as wall
         messages to all logged-in users.  These options take boolean arguments. If forwarding to syslog is
         enabled but nothing reads messages from the socket, forwarding to syslog has no effect. By default,
-        only forwarding to wall is enabled. These settings may be overridden at boot time with the kernel
+        only forwarding to syslog and wall is enabled. These settings may be overridden at boot time with the kernel
         command line options <literal>systemd.journald.forward_to_syslog</literal>,
         <literal>systemd.journald.forward_to_kmsg</literal>,
         <literal>systemd.journald.forward_to_console</literal>, and
index 10ebc3e22e8d26f52055c76e6832547b619db4a8..ce15766a16e83f44593ebafc3e7d6ff9c1ff39f9 100644 (file)
@@ -2198,6 +2198,7 @@ int server_init(Server *s, const char *namespace) {
                 .ratelimit_interval = DEFAULT_RATE_LIMIT_INTERVAL,
                 .ratelimit_burst = DEFAULT_RATE_LIMIT_BURST,
 
+                .forward_to_syslog = true,
                 .forward_to_wall = true,
 
                 .max_file_usec = DEFAULT_MAX_FILE_USEC,
index 2e1aacd8c55bbc543c253511ce3283edf91f9f25..d6cd5b151982bc6bb1b2656c76a2b6c14c7636a2 100644 (file)
@@ -29,7 +29,7 @@
 #RuntimeMaxFiles=100
 #MaxRetentionSec=
 #MaxFileSec=1month
-#ForwardToSyslog=no
+#ForwardToSyslog=yes
 #ForwardToKMsg=no
 #ForwardToConsole=no
 #ForwardToWall=yes