We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1076085 commit 93edf37Copy full SHA for 93edf37
ansible/roles/proxy-haproxy/tasks/main.yml
@@ -17,9 +17,14 @@
17
# this will cause a spurious warning about loading the module twice.
18
module(load="imuxsock"
19
SysSock.Use="off")
20
- input(type="imuxsock" Socket="/var/lib/haproxy/dev/log")
21
22
- local2.* /var/log/haproxy.log
+ # Direct inside-chroot messages at a specific ruleset to prevent
+ # default handling such as syslog forwarding.
23
+ input(type="imuxsock" Socket="/var/lib/haproxy/dev/log" ruleset="haproxy")
24
+
25
+ ruleset(name="haproxy") {
26
+ local2.* /var/log/haproxy.log
27
+ }
28
notify: restart rsyslog
29
- name: Configure logrotate to remove haproxy logs
30
copy:
0 commit comments