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

Another log format #8

Open
emeidi opened this issue Jul 23, 2018 · 0 comments
Open

Another log format #8

emeidi opened this issue Jul 23, 2018 · 0 comments

Comments

@emeidi
Copy link

emeidi commented Jul 23, 2018

Great tool, saved me a lot of work — thank you very much :-)

Just one major issue: My bind9

ii  bind9                                1:9.10.3.dfsg.P4-12.3+deb9u4      amd64        Internet Domain Name Server

produces the following log format:

24-Jul-2018 00:18:25.616 queries: info: client 1.2.3.4#58923 (emeidi.com): query: emeidi.com IN A +E (1.2.3.5)

The following regex matches this kind of query log entry:

regexp_emeidi = /^(\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})\)$/

I had to manually patch base.rb to make it work.

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