ENH: asterisk -- use \S instead of [^:] + prefix failregex with ^\[

detected date portion is stripped from the string to be matched, so it is not only
the right ] is left, but also the left one ;-)
pull/256/merge
Yaroslav Halchenko 2013-06-13 18:58:13 -04:00
parent 6a09ecff5c
commit 09302c5c25
1 changed files with 13 additions and 13 deletions

View File

@ -17,19 +17,19 @@ before = common.conf
# Notes.: regex to match the password failures messages in the logfile.
# Values: TEXT
#
failregex = \]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Wrong password$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - No matching peer found$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Username/auth name mismatch$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Device does not match ACL$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Peer is not supposed to register$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - ACL error \(permit/deny\)$
\]\s*NOTICE%(__pid_re)s [^:]+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Not a local domain$
\]\s*NOTICE%(__pid_re)s\[[^:]+\] [^:]+: Call from '[^']*' \(<HOST>:\d+\) to extension '\d+' rejected because extension not found in context 'default'\.$
\]\s*NOTICE%(__pid_re)s [^:]+: Host <HOST> failed to authenticate as '[^']*'$
\]\s*NOTICE%(__pid_re)s [^:]+: No registration for peer '[^']*' \(from <HOST>\)$
\]\s*NOTICE%(__pid_re)s [^:]+: Host <HOST> failed MD5 authentication for '[^']*' \([^)]+\)$
\]\s*NOTICE%(__pid_re)s [^:]+: Failed to authenticate user [^@]+@<HOST>\S*$
\]\s*SECURITY%(__pid_re)s [^:]+: SecurityEvent="InvalidAccountID",EventTV="[\d-]+",Severity="[\w]+",Service="[\w]+",EventVersion="\d+",AccountID="\d+",SessionID="0x[\da-f]+",LocalAddress="IPV[46]/(UD|TC)P/[\da-fA-F:.]+/\d+",RemoteAddress="IPV[46]/(UD|TC)P/<HOST>/\d+"$
failregex = ^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Wrong password$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - No matching peer found$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Username/auth name mismatch$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Device does not match ACL$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Peer is not supposed to register$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - ACL error \(permit/deny\)$
^\[\]\s*NOTICE%(__pid_re)s \S+: Registration from '[^']*' failed for '<HOST>(:\d+)?' - Not a local domain$
^\[\]\s*NOTICE%(__pid_re)s\[\S+\] \S+: Call from '[^']*' \(<HOST>:\d+\) to extension '\d+' rejected because extension not found in context 'default'\.$
^\[\]\s*NOTICE%(__pid_re)s \S+: Host <HOST> failed to authenticate as '[^']*'$
^\[\]\s*NOTICE%(__pid_re)s \S+: No registration for peer '[^']*' \(from <HOST>\)$
^\[\]\s*NOTICE%(__pid_re)s \S+: Host <HOST> failed MD5 authentication for '[^']*' \([^)]+\)$
^\[\]\s*NOTICE%(__pid_re)s \S+: Failed to authenticate user [^@]+@<HOST>\S*$
^\[\]\s*SECURITY%(__pid_re)s \S+: SecurityEvent="InvalidAccountID",EventTV="[\d-]+",Severity="[\w]+",Service="[\w]+",EventVersion="\d+",AccountID="\d+",SessionID="0x[\da-f]+",LocalAddress="IPV[46]/(UD|TC)P/[\da-fA-F:.]+/\d+",RemoteAddress="IPV[46]/(UD|TC)P/<HOST>/\d+"$
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.