diff options
author | Nicolas Vollmar <nvo@scaling.ch> | 2024-09-24 18:27:29 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-25 05:36:54 +0000 |
commit | de9bba0e97e66d1b1254661f85b9a108518eac76 (patch) | |
tree | 32a5ee666deba515c299d01fa9c10231a4c91f05 /data | |
parent | 6450c7d964352503c99347bdf1d6bd5c673b37bd (diff) | |
download | vyos-1x-de9bba0e97e66d1b1254661f85b9a108518eac76.tar.gz vyos-1x-de9bba0e97e66d1b1254661f85b9a108518eac76.zip |
syslog: T6719: fix the behavior of "syslog global preserve-fqdn"
(cherry picked from commit c196c6d9207ef112e478f44923b2d0bc8a15b3c9)
Diffstat (limited to 'data')
-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..0141812ac 100644 --- a/data/templates/rsyslog/rsyslog.conf.j2 +++ b/data/templates/rsyslog/rsyslog.conf.j2 @@ -10,6 +10,10 @@ $MarkMessagePeriod {{ global.marker.interval }} $PreserveFQDN on {% endif %} +{% if global.local_host_name is vyos_defined %} +$LocalHostName {{ global.local_host_name }} +{% endif %} + # We always log to /var/log/messages $outchannel global,/var/log/messages,262144,/usr/sbin/logrotate {{ logrotate }} {% if global.facility is vyos_defined %} |