summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-01-22 20:52:52 +0100
committerChristian Breunig <christian@breunig.cc>2025-02-03 07:16:35 +0100
commit211bc4a767564d1eb28b431e1529eb719bb721a9 (patch)
treedb6a7c99185d46c28ad9010691f176ef1cf1233c /data/templates/rsyslog
parentb9c43b19acb6f649bb6f64c75ab63df768e360c9 (diff)
downloadvyos-1x-211bc4a767564d1eb28b431e1529eb719bb721a9.tar.gz
vyos-1x-211bc4a767564d1eb28b431e1529eb719bb721a9.zip
syslog: T6989: rename "global" to "local"
The previously "global" options actually were only relevant for the local logging to /var/log/messages.
Diffstat (limited to 'data/templates/rsyslog')
-rw-r--r--data/templates/rsyslog/rsyslog.conf.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2
index 26d62a23f..c2cb8a1ca 100644
--- a/data/templates/rsyslog/rsyslog.conf.j2
+++ b/data/templates/rsyslog/rsyslog.conf.j2
@@ -61,10 +61,10 @@ global(localHostname="{{ preserve_fqdn.host_name }}.{{ preserve_fqdn.domain_name
{% endif %}
#### GLOBAL LOGGING ####
-{% if global.facility is vyos_defined %}
+{% if local.facility is vyos_defined %}
{% set tmp = [] %}
-{% if global.facility is vyos_defined %}
-{% for facility, facility_options in global.facility.items() %}
+{% if local.facility is vyos_defined %}
+{% for facility, facility_options in local.facility.items() %}
{% set _ = tmp.append(facility.replace('all', '*') ~ "." ~ facility_options.level.replace('all', 'debug')) %}
{% endfor %}
if prifilt("{{ tmp | join(',') }}") then {