diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-11 07:24:10 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-11 15:17:20 +0000 |
commit | 61817dbb3f2667bcb0fbd734d70daeb2c4672720 (patch) | |
tree | 20daa7cfbdde5b62c921084f22fbc9bd3c077d56 | |
parent | d0145bfc824099cb17ad6dc2cc2f81cace4f430d (diff) | |
download | vyos-1x-61817dbb3f2667bcb0fbd734d70daeb2c4672720.tar.gz vyos-1x-61817dbb3f2667bcb0fbd734d70daeb2c4672720.zip |
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)
-rw-r--r-- | data/templates/rsyslog/rsyslog.conf.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
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 %} |