# Match different logs with minimal grok

**URL:** <https://discuss.elastic.co/t/match-different-logs-with-minimal-grok/151395>\
**Category:** Logstash\
**Created:** [October 8, 2018, 7:43am UTC](https://discuss.elastic.co/t/match-different-logs-with-minimal-grok/151395 "2018-10-08T07:43:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor.nilsson](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@victor.nilsson](https://discuss.elastic.co/u/victor.nilsson)\
**Post date:** [October 8, 2018, 7:43am UTC](https://discuss.elastic.co/t/match-different-logs-with-minimal-grok/151395/1 "2018-10-08T07:43:17Z")

</div>

Hi,

Is there a way to match certain parts of a log without having to write a grok regex that matches the whole log? If so, an example would be appreciated 🙂

EDIT: Solved with break\_on\_match =\> false

---

<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:** [November 5, 2018, 7:43am UTC](https://discuss.elastic.co/t/match-different-logs-with-minimal-grok/151395/2 "2018-11-05T07:43:20Z")

</div>

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