I am currently working on getting some DNS logs into Elastic via Logstash.
Grokking the logs with the HOSTNAME pattern works for most hosts. However, there are some hostnames or DNS entries that actually starts with or contains underscores for example:
I had a quick search for the issue and found the following, closed, feature request: https://github.com/logstash-plugins/logstash-patterns-core/pull/107#issuecomment-219770878
In that one I found the following suggested pattern:
When I tried it with that one I ran into a large number of Grok Timeout errors and had to remove it again.
Since I'm new to the world of Grok I was wondering if there are any less 'expensive' pattern that could be used or if I maybe applied it in a less than efficient way?
Any feedback is appreciated.