about summary refs log tree commit diff stats
path: root/tools/conf/etc/syslog-ng.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/conf/etc/syslog-ng.conf')
-rw-r--r--tools/conf/etc/syslog-ng.conf11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/conf/etc/syslog-ng.conf b/tools/conf/etc/syslog-ng.conf
index 5b5fc75..cfb1c08 100644
--- a/tools/conf/etc/syslog-ng.conf
+++ b/tools/conf/etc/syslog-ng.conf
@@ -64,6 +64,7 @@ destination d_shorewall_warn { file ("/var/log/shorewall/warn.log"); };
 destination d_shorewall_info { file ("/var/log/shorewall/info.log"); };
 destination d_dnsmasq	{ file("/var/log/dnsmasq"); };
 destination d_postgres  { file("/var/log/pgsql"); };
+destination d_iptables  { file("/var/log/iptables"); };
 destination d_sshd      { file("/var/log/sshd"); };
 destination d_gitolite  { file("/var/log/gitolite"); };
 destination d_nginx_access { file("/var/log/nginx/access.log" owner(root) group(www) perm(0644));  };
@@ -124,14 +125,19 @@ filter f_dnsmasq { program("dnsmasq"); };
 filter f_postgres { facility(local0); };
 filter f_sshd { facility(local1); };
 
+filter f_iptables {
+    facility(kern)
+    and match("iptables" value("MESSAGE"))
+};
+
 filter f_shorewall_warn {
         level (warn)
-        and match ("iptables" value("MESSAGE"));
+        and match ("Shorewall" value("MESSAGE"));
 };
 
 filter f_shorewall_info {
         level (info)
-        and match ("iptables" value("MESSAGE"));
+        and match ("Shorewall" value("MESSAGE"));
 };
 
 filter f_gitolite { program("gitolite"); };
@@ -145,6 +151,7 @@ filter f_nginx_error {
 };
 
 
+log { source (s_kernel); filter (f_iptables); destination (d_iptables); flags(final);};
 log { source (s_kernel); filter (f_shorewall_warn); destination (d_shorewall_warn); flags(final);};
 log { source (s_kernel); filter (f_shorewall_info); destination (d_shorewall_info); flags(final);};
 log { source(s_log); filter(f_dnsmasq); destination(d_dnsmasq); flags(final); };