Commit d0c33bc6 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Cleanup haproxy logs in rsyslogd

haproxy by itself provides good information, so there is no need to add
information from rsyslogd itself.
parent a4a2555b
...@@ -118,4 +118,4 @@ md5sum = 9d6111a5d6bc07e708116ca331925241 ...@@ -118,4 +118,4 @@ md5sum = 9d6111a5d6bc07e708116ca331925241
[template-rsyslogd-conf] [template-rsyslogd-conf]
_update_hash_filename_ = templates/rsyslogd.conf.in _update_hash_filename_ = templates/rsyslogd.conf.in
md5sum = 6f0fd930ffb3230b7e8c781f88693d69 md5sum = a4135eec94d9febaf6fb51d885886175
...@@ -2,9 +2,12 @@ module( ...@@ -2,9 +2,12 @@ module(
load="imuxsock" load="imuxsock"
SysSock.Name="{{ socket }}") SysSock.Name="{{ socket }}")
# Use traditional timestamp format. # Just simply output the raw line without any additional information, as
# To enable high precision timestamps, comment out the following line. # haproxy emits enough information by itself
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # Also cut out first empty space in msg, which is related to rsyslogd
# internal and end up cutting on 8k, as it's default of $MaxMessageSize
template(name="rawoutput" type="string" string="%msg:2:8192%\n")
$ActionFileDefaultTemplate rawoutput
$FileCreateMode 0600 $FileCreateMode 0600
$DirCreateMode 0700 $DirCreateMode 0700
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment