Skip to content

Commit e418675

Browse files
marian-pritsaklguohan
authored andcommitted
[rsyslog]: Use SONiC template in containers (#940)
1 parent 116ba4b commit e418675

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

files/image_config/rsyslog/rsyslog.conf.j2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ $UDPServerRun 514
3030
###########################
3131
#### GLOBAL DIRECTIVES ####
3232
###########################
33-
#Set remote syslog server
34-
{% for server in syslog_servers %}
35-
*.* @{{ server }}:514
36-
{% endfor %}
37-
3833
#
3934
# Use traditional timestamp format.
4035
# To enable high precision timestamps, comment out the following line.
@@ -45,6 +40,11 @@ $UDPServerRun 514
4540
$template SONiCFileFormat,"%TIMESTAMP%.%timestamp:::date-subseconds% %HOSTNAME% %syslogseverity-text:::uppercase% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
4641
$ActionFileDefaultTemplate SONiCFileFormat
4742

43+
#Set remote syslog server
44+
{% for server in syslog_servers %}
45+
*.* @{{ server }}:514;SONiCFileFormat
46+
{% endfor %}
47+
4848
#
4949
# Set the default permissions for all log files.
5050
#

0 commit comments

Comments
 (0)