-<%- if has_variable?("syslogversion") and @syslogversion.to_s == "3.1" -%>
-@version: 3.0
-<%- elsif has_variable?("syslogversion") and @syslogversion.to_s == "3.5" -%>
+<%- if has_variable?("syslogversion") and @syslogversion.to_s == "3.5" -%>
@version: 3.5
@include "scl.conf"
<%- elsif has_variable?("syslogversion") and @syslogversion.to_s == "3.8" -%>
#sync(0);
# the number of lines fitting in the output queue
-<%- if has_variable?("syslogversion") and @syslogversion.to_s == "3.1" -%>
- log_fifo_size(2048);
-<%- else -%>
log_fifo_size(10000);
-<%- end -%>
# enable or disable directory creation for destination files
create_dirs(yes);
source s_local {
# message generated by Syslog-NG
internal();
-<%- if has_variable?("syslogversion") and @syslogversion.to_s == "3.1" -%>
- # standard Linux log source (this is the default place for the syslog()
- # function to send logs to)
- unix-stream("/dev/log");
- # messages from the kernel
- file("/proc/kmsg" program_override("kernel: "));
-<%- else -%>
system();
-<%- end -%>
<%- if has_variable?("haproxy") && @haproxy -%>
unix-stream("/var/lib/haproxy/dev/log");
<%- end -%>