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>
Tue, 2 Nov 2021 16:29:45 +0000 (16:29 +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 4b0dd90cbbdb7893ff4fb8fbf85b256c28929290..ed7e4288b362f5234f58285d1c21397ed0da6b31 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 2d1d9e66d79eb05fe925b3a0a03ced94d72a3343..2c1c7acc405d15e8e1a1ffc3c81454721bc5d822 100644 (file)
@@ -2210,6 +2210,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 5a60a9d39c59f4db643cbaf2c028d260e85c0455..64f4d4bee1560209bd57fc51fa90579256793a81 100644 (file)
@@ -32,7 +32,7 @@
 #RuntimeMaxFiles=100
 #MaxRetentionSec=
 #MaxFileSec=1month
-#ForwardToSyslog=no
+#ForwardToSyslog=yes
 #ForwardToKMsg=no
 #ForwardToConsole=no
 #ForwardToWall=yes