Browse Source

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

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 years ago
parent
commit
7ab2086623
2 changed files with 5 additions and 1 deletions
  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