Sfoglia il codice sorgente

Syntax error resolved, "\\" no longer allwed to continue on new line

tBKwtWS 6 anni fa
parent
commit
c536de7c56
1 ha cambiato i file con 6 aggiunte e 19 eliminazioni
  1. 6 19
      rsyslog.d/30-iptables.conf

+ 6 - 19
rsyslog.d/30-iptables.conf

@@ -1,30 +1,17 @@
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables ') \\
-then    -/var/log/iptables/all.log
+if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables ') then    -/var/log/iptables/all.log
 #    &   ~
 
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables dropped') \\
-then    -/var/log/iptables/drop.log
+if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables dropped') then    -/var/log/iptables/drop.log
 #    &   ~
 
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables rejected') \\
-then    -/var/log/iptables/reject.log
+if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables rejected') then    -/var/log/iptables/reject.log
 #    &   ~
 
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables ' and $msg contains ' DHCP') \\
-then    -/var/log/iptables/dhcp.log
+#if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables ' and $msg contains ' DHCP') then    -/var/log/iptables/dhcp.log
 #    &   ~
 
-iptables allowed DHCP
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables dropped' or $msg contains ' iptables rejected') \\
-then    -/var/log/iptables/troubleshooot.log
+if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables dropped' or $msg contains ' iptables rejected') then    -/var/log/iptables/block.log
 #    &   ~
 
-if  ($syslogfacility-text == 'kern') and \\
-($msg contains ' iptables clutter') \\
-then    -/var/log/iptables/clutter.log
+if  ($syslogfacility-text == 'kern') and ($msg contains ' iptables clutter') then    -/var/log/iptables/clutter.log
 #    &   ~