I need help with a custom log
Posted: 02 Nov 2023, 21:55
I have tried this in my regex.custom.pm to use with the output from the error log file line(s) below but it doesn't work.
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ auth_basic:error \(\?\@(\d+\.\d+\.\d+\.\d+)\) /)) {
return ("Failed basicauth login from",$1,"basicauth","7","80,443","1","0");
}
The log file I have added as CUSTOM1_LOG returns the following when basic auth fails via https.
[Thu Nov 02 22:28:28.360334 2023] [auth_basic:error] [pid 3077955:tid 139941203703360] [remote 118.173.xxx.xxx:0] AH01618: user test not found: /members/
Thanks in advance.
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ auth_basic:error \(\?\@(\d+\.\d+\.\d+\.\d+)\) /)) {
return ("Failed basicauth login from",$1,"basicauth","7","80,443","1","0");
}
The log file I have added as CUSTOM1_LOG returns the following when basic auth fails via https.
[Thu Nov 02 22:28:28.360334 2023] [auth_basic:error] [pid 3077955:tid 139941203703360] [remote 118.173.xxx.xxx:0] AH01618: user test not found: /members/
Thanks in advance.