Could you please help me to fix my regex to filter login failure from Squid. Its log line is:
Code: Select all
1392714132.861 0 1.2.3.4 TCP_DENIED/407 3922 CONNECT google.com:443 username HIER_NONE/- text/html
Code: Select all
if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~ /^\[\S+\s+\S+\s+\S+\s+\S+\s+\S+\] TCP_DENIED\/407/)) {
return ("Failed Squid authentication from",$1,"SquidAuth","3","3128","604800");
}
Please help.