Skip to content

Commit

Permalink
Create haproxy.syslog.amzn2
Browse files Browse the repository at this point in the history
  • Loading branch information
philyuchkoff authored Aug 19, 2024
1 parent 108ab89 commit e858e9a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions SOURCES/haproxy.syslog.amzn2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$ModLoad imudp
$UDPServerAddress 127.0.0.1
$UDPServerRun 514
$MaxMessageSize 64k
$FileCreateMode 0600

$template HAProxy,"%TIMESTAMP% %syslogseverity-text:::UPPERCASE%: %msg%\n"
$template HAProxyAccess,"%msg%\n"

local2.=info /var/log/haproxy/access.log;HAProxyAccess
local2.=notice;local2.=warning /var/log/haproxy/status.log;HAProxy
local2.error /var/log/haproxy/error.log;HAProxy
local2.* stop

0 comments on commit e858e9a

Please sign in to comment.