# Grok debugger error for multiple patterns

**URL:** <https://discuss.elastic.co/t/grok-debugger-error-for-multiple-patterns/254335>\
**Category:** Logstash\
**Created:** [November 4, 2020, 9:40pm UTC](https://discuss.elastic.co/t/grok-debugger-error-for-multiple-patterns/254335 "2020-11-04T21:40:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Fernando\_Palm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_fernando_palm/32/77804_2.png) [@Carlos\_Fernando\_Palm](https://discuss.elastic.co/u/Carlos_Fernando_Palm)\
**Post date:** [November 4, 2020, 9:40pm UTC](https://discuss.elastic.co/t/grok-debugger-error-for-multiple-patterns/254335/1 "2020-11-04T21:40:42Z")

</div>

Hello there. This works:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d03d6d9493626bac84821f92311115265cace64.png)  
Also this works:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/f/2f07b864c44c9b2c63e926cacbf938de8178bdae.png)

Their combination however does not work:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/4/64ee30482afb946afb55bd388785f073b941736a.png)  
Any idea why?

---

<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 4, 2020, 10:29pm UTC](https://discuss.elastic.co/t/grok-debugger-error-for-multiple-patterns/254335/2 "2020-11-04T22:29:42Z")

</div>

> [@Carlos\_Fernando\_Palm](#):
>
> Any idea why?

Because in your grok pattern the two fields are separated by a single space, but in your data they are separated by space, dash, space. That is not going to match.

---

<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 2, 2020, 10:29pm UTC](https://discuss.elastic.co/t/grok-debugger-error-for-multiple-patterns/254335/3 "2020-12-02T22:29:49Z")

</div>

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