[rsyslog]: Use SONiC template in containers (#940)

This commit is contained in:
Marian Pritsak 2017-09-07 23:01:20 +03:00 committed by lguohan
parent 116ba4b180
commit e418675ba5

View File

@ -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.
@ -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.
#