summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/syslog-ng.conf_jessie.erb2
-rw-r--r--templates/syslog-ng.conf_wheezy.erb4
2 files changed, 5 insertions, 1 deletions
diff --git a/templates/syslog-ng.conf_jessie.erb b/templates/syslog-ng.conf_jessie.erb
index 953295d..aea3e1c 100644
--- a/templates/syslog-ng.conf_jessie.erb
+++ b/templates/syslog-ng.conf_jessie.erb
@@ -25,7 +25,9 @@ options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
# Logs may come from unix stream, but not from another machine.
#
source s_src {
+<% if (@log_kernel_msgs == true) -%>
system();
+<% end -%>
internal();
};
diff --git a/templates/syslog-ng.conf_wheezy.erb b/templates/syslog-ng.conf_wheezy.erb
index 9ab9101..1f73cbf 100644
--- a/templates/syslog-ng.conf_wheezy.erb
+++ b/templates/syslog-ng.conf_wheezy.erb
@@ -1,4 +1,4 @@
-@version: 3.3
+@version: 3.5
@include "scl.conf"
@include "`scl-root`/system/tty10.conf"
@@ -25,7 +25,9 @@ options { chain_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
# Logs may come from unix stream, but not from another machine.
#
source s_src {
+<% if (@log_kernel_msgs == true) -%>
system();
+<% end -%>
internal();
};