Skip to content

Commit

Permalink
netlog: Remove some noise
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jan 30, 2019
1 parent 7044288 commit b02990f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions netlog/netlog
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ our %LIMIT=( # ( class => rate-limit , ... )
'TEST'=>new My::RateLimit(10,10),
'HARDERR'=>new My::RateLimit(1,14400), # 1 in 4 h
'NACHTWAECHTER' => new My::RateLimit(10,3600), # 10 in 1 h
'SUDO' => new My::RateLimit(30,60),
'CPING' => new My::RateLimit(1,86400), # 1 in 24 h
);

Expand All @@ -99,8 +98,6 @@ sub filter {

/^NETLOG/ and return 0;

$proc eq 'sudo' && !/pam_/ and return 'SUDO';

if ($proc eq 'clusterd') {
/DOWN|rebootet/ and return 'STATE';

Expand Down Expand Up @@ -137,7 +134,6 @@ sub filter {
/rcu_sched detected stalls/ and return 'RCUSTALL';
/invoked oom-killer/ and return 'OOMKILLER';
}
$proc eq 'su' and /^[+-]/ and return 'SETUSER';
if ($proc =~ /^imaps?/) {
/bailing out/ and return 'IMAP_MAILBOX';
/error/ && !/tls_start_servertls/ and return 'IMAP_MAILBOX';
Expand Down Expand Up @@ -167,7 +163,7 @@ sub filter {

/remote fault/ and return 'REMOTE_FAULT';

if ($proc eq 'logwatcher') { # /project/admin/tools/logwatcher.pl on geniux
if ($proc eq 'logwatcher' && /block IP/) { # /project/admin/tools/logwatcher.pl on geniux
return 'LOGWATCHER';
}

Expand Down

0 comments on commit b02990f

Please sign in to comment.