From 50f9d4a5d286fff80b4df38136c45bde5abcd4c4 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Tue, 10 Apr 2018 14:46:34 +0100 Subject: tools syslogng revision --- tools/conf/etc/syslog-ng.conf | 11 +++- tools/index.html | 4 +- tools/syslog-ng.html | 132 ++++-------------------------------------- 3 files changed, 20 insertions(+), 127 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); }; diff --git a/tools/index.html b/tools/index.html index 1c4eb00..2b6a4d4 100644 --- a/tools/index.html +++ b/tools/index.html @@ -94,10 +94,8 @@
  • Syslog-ng