From 61817dbb3f2667bcb0fbd734d70daeb2c4672720 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 11 Jan 2024 07:24:10 +0100 Subject: syslog: T1487: store all journalctl log files also in syslog This is useful to send the journal logs to external syslog servers (cherry picked from commit 800c85a20a00278ab07bbcccd85b753b1ca31e21) --- data/templates/rsyslog/rsyslog.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/templates/rsyslog') diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2 index 97e0ee0b7..96f91def1 100644 --- a/data/templates/rsyslog/rsyslog.conf.j2 +++ b/data/templates/rsyslog/rsyslog.conf.j2 @@ -1,5 +1,9 @@ ### Autogenerated by system_syslog.py ### +# Load journald logs to rsyslog +module(load="imjournal") +module(load="mmjsonparse") + {% if global.marker is vyos_defined %} $ModLoad immark {% if global.marker.interval is vyos_defined %} -- cgit v1.2.3