summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog/rsyslog.conf.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-11 07:24:10 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-11 15:17:20 +0000
commit61817dbb3f2667bcb0fbd734d70daeb2c4672720 (patch)
tree20daa7cfbdde5b62c921084f22fbc9bd3c077d56 /data/templates/rsyslog/rsyslog.conf.j2
parentd0145bfc824099cb17ad6dc2cc2f81cace4f430d (diff)
downloadvyos-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)
Diffstat (limited to 'data/templates/rsyslog/rsyslog.conf.j2')
-rw-r--r--data/templates/rsyslog/rsyslog.conf.j24
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 %}