Skip to content

Commit 8a74366

Browse files
authored
Merge pull request #10 from trengri/master
Fixed syntax error in RHEL7/8 Rsyslog config
2 parents 78b3ec9 + 34a081c commit 8a74366

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

SOURCES/haproxy.syslog.el7

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ $template HAProxy,"%TIMESTAMP% %syslogseverity-text:::UPPERCASE%: %msg:::drop-la
66
$template HAProxyAccess,"%msg%\n"
77

88
local2.=info if $programname startswith 'haproxy' then /var/log/haproxy/access.log;HAProxyAccess
9+
& stop
910
local2.emerg if $programname startswith 'haproxy' then /var/log/haproxy/error.log;HAProxy
11+
& stop
1012
local2.notice if $programname startswith 'haproxy' then /var/log/haproxy/status.log;HAProxy
11-
local2.* & stop
13+
& stop

SOURCES/haproxy.syslog.el8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ $template HAProxy,"%TIMESTAMP% %syslogseverity-text:::UPPERCASE%: %msg:::drop-la
66
$template HAProxyAccess,"%msg%\n"
77

88
local2.=info if $programname startswith 'haproxy' then /var/log/haproxy/access.log;HAProxyAccess
9+
& stop
910
local2.emerg if $programname startswith 'haproxy' then /var/log/haproxy/error.log;HAProxy
11+
& stop
1012
local2.notice if $programname startswith 'haproxy' then /var/log/haproxy/status.log;HAProxy
11-
local2.* & stop
13+
& stop

0 commit comments

Comments
 (0)