Does anyone have a set of good grok patterns for the BIND DNS server query logs?
The messages I'm interested in look like this: Apr 22 15:40:26 ns.example.com named[1351]: queries: info: client 192.0.2.215#53591: query: www.example.com IN A -ED (198.51.100.70)
Most of it is easy, but the second to last field is a bunch of flags that I'm not sure how to parse.
That lets the pattern match, but doesn't seem to quite quite get me where I want to be. I'm thinking maybe something with translate filter to make the output easier to search later might work?
Sorry. You're right. I wasn't clear about my goal. I want to be able to easily access the individual flags, so I can do things like graph UDP vs. TCP transport.
I did manage to make it work with translate, but your suggestion is probably cleaner. Thank you for the suggestion.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.