# Logstash filtering on filebeat's successfully multilined event

**URL:** <https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110>\
**Category:** Logstash\
**Created:** [November 22, 2019, 6:28pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110 "2019-11-22T18:28:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nnet/32/25982_2.png) [@nnet](https://discuss.elastic.co/u/nnet)\
**Post date:** [November 22, 2019, 6:28pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110/1 "2019-11-22T18:28:21Z")

</div>

I have correctly configured filebeat to deal with a multiline event generated by ISC's kea software.  
I want to parse that event into various fields, but none of my grok statements are matching. I think it may have to do with EOL, but my attempts to use things like \n or $ are not matching. Here's an example of an event:

```
2019-10-14T12:01:11.131-0400 INFO [kea-dhcp-ddns.d2-to-dns/13043] DHCP_DDNS_ADD_SUCCEEDED DHCP_DDNS Request ID 000001152FBA39EEA026B1D7B5E76088BBD4FBA6835B4854D3994882B13FA1279FDD84: successfully added the DNS mapping addition for this request: Type: 0 (CHG_ADD)
Forward Change: yes
Reverse Change: yes
FQDN: [ddns-192-168-17-103.dhcp.ldev.]
IP Address: [192.168.17.103]
DHCID: [000001152FBA39EEA026B1D7B5E76088BBD4FBA6835B4854D3994882B13FA1279FDD84]
Lease Expires On: 20191014170111
Lease Length: 3600

```

I want to parse some fields from the first line, and from each line after that one.  
I'm stuck on how to parse field data from the multiline event, any pointers?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 28, 2019, 3:13pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110/2 "2019-11-28T15:13:00Z")

</div>

I moved the question to Logstash forum, as it is an LS question.

---

<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:** [November 28, 2019, 3:24pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110/3 "2019-11-28T15:24:01Z")

</div>

Does [this](https://discuss.elastic.co/t/parse-and-ingest-email-files-using-logstack-help-needed/119141/10) help?

---

<div class="post-metadata">

**Author:** ![nnet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nnet/32/25982_2.png) [@nnet](https://discuss.elastic.co/u/nnet)\
**Post date:** [November 28, 2019, 3:34pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110/4 "2019-11-28T15:34:48Z")

</div>

I missed this response...@kvch thanks...@Badger will give your suggestion a try, thanks.

---

<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:** [December 26, 2019, 3:34pm UTC](https://discuss.elastic.co/t/logstash-filtering-on-filebeats-successfully-multilined-event/209110/5 "2019-12-26T15:34:53Z")

</div>

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