[rsyslog]: Use SONiC template in containers (#940)
This commit is contained in:
parent
116ba4b180
commit
e418675ba5
@ -30,11 +30,6 @@ $UDPServerRun 514
|
|||||||
###########################
|
###########################
|
||||||
#### GLOBAL DIRECTIVES ####
|
#### GLOBAL DIRECTIVES ####
|
||||||
###########################
|
###########################
|
||||||
#Set remote syslog server
|
|
||||||
{% for server in syslog_servers %}
|
|
||||||
*.* @{{ server }}:514
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Use traditional timestamp format.
|
# Use traditional timestamp format.
|
||||||
# To enable high precision timestamps, comment out the following line.
|
# 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"
|
$template SONiCFileFormat,"%TIMESTAMP%.%timestamp:::date-subseconds% %HOSTNAME% %syslogseverity-text:::uppercase% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
|
||||||
$ActionFileDefaultTemplate SONiCFileFormat
|
$ActionFileDefaultTemplate SONiCFileFormat
|
||||||
|
|
||||||
|
#Set remote syslog server
|
||||||
|
{% for server in syslog_servers %}
|
||||||
|
*.* @{{ server }}:514;SONiCFileFormat
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set the default permissions for all log files.
|
# Set the default permissions for all log files.
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user