更新hostname格式, 例如:ABC-M01R15N01-ADC004-MCN0
This commit is contained in:
@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
|
|||||||
|
|
||||||
# Use default timestamp format
|
# Use default timestamp format
|
||||||
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
#$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
|
$ActionFileDefaultTemplate tsgformat
|
||||||
|
|
||||||
# File syncing capability is disabled by default. This feature is usually not required,
|
# File syncing capability is disabled by default. This feature is usually not required,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
|
|||||||
|
|
||||||
# Use default timestamp format
|
# Use default timestamp format
|
||||||
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
#$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
|
$ActionFileDefaultTemplate tsgformat
|
||||||
|
|
||||||
# File syncing capability is disabled by default. This feature is usually not required,
|
# File syncing capability is disabled by default. This feature is usually not required,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
|
|||||||
|
|
||||||
# Use default timestamp format
|
# Use default timestamp format
|
||||||
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
#$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
|
$ActionFileDefaultTemplate tsgformat
|
||||||
|
|
||||||
# File syncing capability is disabled by default. This feature is usually not required,
|
# File syncing capability is disabled by default. This feature is usually not required,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
|
|||||||
|
|
||||||
# Use default timestamp format
|
# Use default timestamp format
|
||||||
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
#$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
|
$ActionFileDefaultTemplate tsgformat
|
||||||
|
|
||||||
# File syncing capability is disabled by default. This feature is usually not required,
|
# File syncing capability is disabled by default. This feature is usually not required,
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ $WorkDirectory /var/lib/rsyslog
|
|||||||
|
|
||||||
# Use default timestamp format
|
# Use default timestamp format
|
||||||
#$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
#$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
|
$ActionFileDefaultTemplate tsgformat
|
||||||
|
|
||||||
# File syncing capability is disabled by default. This feature is usually not required,
|
# File syncing capability is disabled by default. This feature is usually not required,
|
||||||
|
|||||||
Reference in New Issue
Block a user