# How can i parse log file and match specific strings with grok filter

**URL:** <https://discuss.elastic.co/t/how-can-i-parse-log-file-and-match-specific-strings-with-grok-filter/285115>\
**Category:** Logstash\
**Created:** [September 24, 2021, 9:59pm UTC](https://discuss.elastic.co/t/how-can-i-parse-log-file-and-match-specific-strings-with-grok-filter/285115 "2021-09-24T21:59:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [September 24, 2021, 11:30pm UTC](https://discuss.elastic.co/t/how-can-i-parse-log-file-and-match-specific-strings-with-grok-filter/285115/3 "2021-09-24T23:30:54Z")

</div>

I would break\_on\_match =\> false and an array of patterns. Like [this](https://discuss.elastic.co/t/issue-parsing-db2diag-log-using-grok-filter/281957/2).

Your example grok does not match because it expects a space after the =

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-parse-log-file-and-match-specific-strings-with-grok-filter/285115)._
