更新hostname格式, 例如:ABC-M01R15N01-ADC004-MCN0

This commit is contained in:
lijia
2020-10-04 12:09:08 +08:00
parent 6c2cf75271
commit d12ad83a58
5 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
# Use default timestamp format
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:3%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:4%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$ActionFileDefaultTemplate tsgformat
# File syncing capability is disabled by default. This feature is usually not required,

View File

@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
# Use default timestamp format
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:3%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:4%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$ActionFileDefaultTemplate tsgformat
# File syncing capability is disabled by default. This feature is usually not required,

View File

@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
# Use default timestamp format
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:3%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:4%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$ActionFileDefaultTemplate tsgformat
# File syncing capability is disabled by default. This feature is usually not required,

View File

@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
# Use default timestamp format
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:3%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:4%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$ActionFileDefaultTemplate tsgformat
# File syncing capability is disabled by default. This feature is usually not required,

View File

@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
# Use default timestamp format
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:3%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$template tsgformat,"%$NOW% %TIMESTAMP:8:15% %HOSTNAME:F,45:4%:<%PRI%> [%syslogseverity-text%] %msg%\n"
$ActionFileDefaultTemplate tsgformat
# File syncing capability is disabled by default. This feature is usually not required,