# How to use multiline pattern matching grok filter?

**URL:** <https://discuss.elastic.co/t/how-to-use-multiline-pattern-matching-grok-filter/129632>\
**Category:** Logstash\
**Created:** [April 26, 2018, 10:01am UTC](https://discuss.elastic.co/t/how-to-use-multiline-pattern-matching-grok-filter/129632 "2018-04-26T10:01:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jenni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenni/32/29684_2.png) [@Jenni](https://discuss.elastic.co/u/Jenni)\
**Post date:** [April 26, 2018, 12:01pm UTC](https://discuss.elastic.co/t/how-to-use-multiline-pattern-matching-grok-filter/129632/3 "2018-04-26T12:01:03Z")

</div>

Does this help you?

`(?<the_line>.*)\n.*dhd_check_hang: Event HANG`

---

_[View the full topic](https://discuss.elastic.co/t/how-to-use-multiline-pattern-matching-grok-filter/129632)._
