# Grok Pattern DNS Querys send via syslogd

**URL:** <https://discuss.elastic.co/t/grok-pattern-dns-querys-send-via-syslogd/114512>\
**Category:** Logstash\
**Created:** [January 8, 2018, 11:42am UTC](https://discuss.elastic.co/t/grok-pattern-dns-querys-send-via-syslogd/114512 "2018-01-08T11:42:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.Klos](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@A.Klos](https://discuss.elastic.co/u/A.Klos)\
**Post date:** [January 8, 2018, 11:42am UTC](https://discuss.elastic.co/t/grok-pattern-dns-querys-send-via-syslogd/114512/1 "2018-01-08T11:42:54Z")

</div>

Hi,

we have a DNS server and send all dns queries to logstash / elastic.

The message line seems to be like this:

\<30\>Jan 8 12:32:35 10.243.XX.XX named[21826]: queries: client 10.243.YY.YY#43789 (111.236.ZZ.ZZ.in-addr.arpa): query: 111.236.ZZ.ZZ.in-addr.arpa IN PTR + (10.243.ZZ.ZZ)

\<30\>Jan 8 13:19:27 10.243.XX.XX named[21826]: queries: client 10.32.YY.YY#61494 (corppki.mydomain.dom): query: corppki.mydomain.dom IN A +ED (10.243.XX.XX)

I would split to:

- dns server
- query client
- query destination

I also would put 12:32:35 in timestamp.

I found following link:

> **[willemdh/logstash\_filter\_infoblox](https://github.com/willemdh/logstash_filter_infoblox)**
>
> logstash\_filter\_infoblox - A Logstash filter for Infoblox named and dhcpd syslog.

but I don't know how to implement it.

Any Idea?

Regards

---

<div class="post-metadata">

**Author:** ![murlin99](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@murlin99](https://discuss.elastic.co/u/murlin99)\
**Post date:** [January 8, 2018, 8:35pm UTC](https://discuss.elastic.co/t/grok-pattern-dns-querys-send-via-syslogd/114512/2 "2018-01-08T20:35:14Z")

</div>

This could easily be done with a custom grok filter. This document should help with that.

[https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html)

--Bryan Vest

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 5, 2018, 8:35pm UTC](https://discuss.elastic.co/t/grok-pattern-dns-querys-send-via-syslogd/114512/3 "2018-02-05T20:35:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
