Bind-Log-Analyzer
Bind-Log-Analyzer copied to clipboard
Can't parse the line
The following log entries can't be parsed:
22-Jul-2018 09:37:20.687 queries: info: client 1.2.3.4#58896 (dns-us.st): query: dns-us.st IN A -EDC (127.0.0.1)
The following regex catches the - (minus) prefixing EDC:
/^(\d{2}-\w{3}-\d{4}\s+\d{2}:\d{2}:\d{2}\.\d{3})\s+queries:\sinfo:\sclient\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})#\d+\s+\(.+\):\s+query:\s+(.*)\s+IN\s+(\w+)\s+[\+\-]\w*\s+\((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\)$/