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
committerChristian Breunig <christian@breunig.cc>2024-01-11 07:24:10 +0100
commit800c85a20a00278ab07bbcccd85b753b1ca31e21 (patch)
treeee4ec1b345141e046d0614175b56f51b6f093e28 /data/templates/rsyslog/rsyslog.conf.j2
parentd61cc9a0628be30314ff15c404e2ba0783e5a2b2 (diff)
downloadvyos-1x-800c85a20a00278ab07bbcccd85b753b1ca31e21.tar.gz
vyos-1x-800c85a20a00278ab07bbcccd85b753b1ca31e21.zip
syslog: T1487: store all journalctl log files also in syslog
This is useful to send the journal logs to external syslog servers
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 %}