Add a logging device for haproxy
authorPeter Palfrader <peter@palfrader.org>
Wed, 30 May 2018 08:18:57 +0000 (10:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 30 May 2018 08:18:57 +0000 (10:18 +0200)
modules/syslog_ng/templates/syslog-ng.conf.erb

index bb35177..031e606 100644 (file)
@@ -119,6 +119,9 @@ source s_local {
 <%- else -%>
        system();
 <%- end -%>
+<%- if has_variable?("haproxy") && @haproxy -%>
+       unix-stream("/var/lib/haproxy/dev/log");
+<%- end -%>
 };
 
 <%- if (@hostname == "lotti") || (@hostname == "lully") || (@hostname == "loghost-grnet-01") -%>