Skip to content

Commit

Permalink
[rsyslog]: Use SONiC template in containers (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-pritsak authored and lguohan committed Sep 7, 2017
1 parent 116ba4b commit e418675
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions files/image_config/rsyslog/rsyslog.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ $UDPServerRun 514
###########################
#### GLOBAL DIRECTIVES ####
###########################
#Set remote syslog server
{% for server in syslog_servers %}
*.* @{{ server }}:514
{% endfor %}

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
Expand All @@ -45,6 +40,11 @@ $UDPServerRun 514
$template SONiCFileFormat,"%TIMESTAMP%.%timestamp:::date-subseconds% %HOSTNAME% %syslogseverity-text:::uppercase% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionFileDefaultTemplate SONiCFileFormat

#Set remote syslog server
{% for server in syslog_servers %}
*.* @{{ server }}:514;SONiCFileFormat
{% endfor %}

#
# Set the default permissions for all log files.
#
Expand Down

0 comments on commit e418675

Please sign in to comment.