File tree Expand file tree Collapse file tree
files/image_config/rsyslog Expand file tree Collapse file tree Original file line number Diff line number Diff 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#
You can’t perform that action at this time.
0 commit comments