Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't parse the line #10

Open
emeidi opened this issue Jul 24, 2018 · 1 comment
Open

Can't parse the line #10

emeidi opened this issue Jul 24, 2018 · 1 comment

Comments

@emeidi
Copy link

emeidi commented Jul 24, 2018

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)
@emeidi
Copy link
Author

emeidi commented Jul 29, 2018

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})\)$/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant