aboutsummaryrefslogtreecommitdiffstats
path: root/tools/conf/etc
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-04-10 14:46:34 +0100
committerSilvino Silva <silvino@bk.ru>2018-04-10 14:46:34 +0100
commit50f9d4a5d286fff80b4df38136c45bde5abcd4c4 (patch)
tree5c3952be71c81145c5a9dee6f7d055deadacd9b1 /tools/conf/etc
parent198d04472a1b9fcb36fd6626dc02e6be24590ed8 (diff)
downloaddoc-50f9d4a5d286fff80b4df38136c45bde5abcd4c4.tar.gz
tools syslogng revision
Diffstat (limited to 'tools/conf/etc')
-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); };