# Parsing DNS Logs from GCP Cloud

**URL:** <https://discuss.elastic.co/t/parsing-dns-logs-from-gcp-cloud/214911>\
**Category:** Logstash\
**Created:** [January 13, 2020, 10:10pm UTC](https://discuss.elastic.co/t/parsing-dns-logs-from-gcp-cloud/214911 "2020-01-13T22:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel\_a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_a/32/48390_2.png) [@daniel\_a](https://discuss.elastic.co/u/daniel_a)\
**Post date:** [January 13, 2020, 10:10pm UTC](https://discuss.elastic.co/t/parsing-dns-logs-from-gcp-cloud/214911/1 "2020-01-13T22:10:32Z")

</div>

Is there a parser for the DNS logs in Logstash? I've noticed some of my logs are not being parsed, the ones with multiple lines. This shows up as a single field. How can I parse it?

```
jsonPayload.rdata	google.com.	299	IN	a	172.217.214.113
                    google.com.	299	IN	a	172.217.214.101
                    google.com.	299	IN	a	172.217.214.138
                    google.com.	299	IN	a	172.217.214.100
                    google.com.	299	IN	a	172.217.214.102
                    google.com.	299	IN	a	172.217.214.139
```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 13, 2020, 11:32pm UTC](https://discuss.elastic.co/t/parsing-dns-logs-from-gcp-cloud/214911/2 "2020-01-13T23:32:33Z")

</div>

If you receive that as a single event and want to extract the 6 entries then you can do it using ruby and scan. See [here](https://discuss.elastic.co/t/stop-proccesing-events-lines-after-first-grok-match/214696/10) for an example.

---

<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 10, 2020, 11:32pm UTC](https://discuss.elastic.co/t/parsing-dns-logs-from-gcp-cloud/214911/3 "2020-02-10T23:32:50Z")

</div>

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