summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>2023-05-12 20:34:00 +0200
committerGitHub <noreply@github.com>2023-05-12 20:34:00 +0200
commit380bc7ddf6b93d66df047e43328693ac0e849c24 (patch)
treef69a1c52f65d141b92ef75eb587004758df57477
parentc60e9c932cab24bcc324f45752f0528332cc69a4 (diff)
downloadvyos-1x-380bc7ddf6b93d66df047e43328693ac0e849c24.tar.gz
vyos-1x-380bc7ddf6b93d66df047e43328693ac0e849c24.zip
T2778: Fix syslog octet_counted format
-rw-r--r--data/templates/rsyslog/rsyslog.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2
index 0460ae5f0..5352fc367 100644
--- a/data/templates/rsyslog/rsyslog.conf.j2
+++ b/data/templates/rsyslog/rsyslog.conf.j2
@@ -49,7 +49,7 @@ $outchannel {{ file_name }},/var/log/user/{{ file_name }},{{ file_options.archiv
{% set _ = tmp.append(facility.replace('all', '*') + '.' + facility_options.level) %}
{% endfor %}
{% if host_options.protocol is vyos_defined('tcp') %}
-{% if host_options.oct_count is vyos_defined %}
+{% if host_options.format.octet_counted is vyos_defined %}
{{ tmp | join(';') }} @@(o){{ host_name | bracketize_ipv6 }}:{{ host_options.port }};RSYSLOG_SyslogProtocol23Format
{% else %}
{{ tmp | join(';') }} @@{{ host_name | bracketize_ipv6 }}:{{ host_options.port }}