Parcourir la source

rsyslog: Stop some Ubnt SPAM from fillig up our disks.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm il y a 5 ans
Parent
commit
7ab2086623
2 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 4 0
      rsyslog/ffho/30-ap.conf
  2. 1 1
      rsyslog/ffho/30-net.conf

+ 4 - 0
rsyslog/ffho/30-ap.conf

@@ -4,3 +4,7 @@ $FileGroup adm
 
 if $hostname startswith 'ap-' then /var/log/ap.log
 & stop
+if $programname startswith '("U7MP,' then /var/log/ap.log
+& stop
+if $programname startswith '("U7LT,' then /var/log/ap.log
+& stop

+ 1 - 1
rsyslog/ffho/30-net.conf

@@ -2,5 +2,5 @@ $FileCreateMode 0640
 $FileOwner root
 $FileGroup adm
 
-if $fromhost-ip startswith '172.30.' then /var/log/net.log
+if $fromhost-ip startswith '172.30.' and not $msg contains 'regdmn5g' then /var/log/net.log
 & stop