# Grok fails in logstash with grokparsefailure, but OK in grokdebugger

**URL:** <https://discuss.elastic.co/t/grok-fails-in-logstash-with-grokparsefailure-but-ok-in-grokdebugger/221015>\
**Category:** Logstash\
**Created:** [February 26, 2020, 10:47am UTC](https://discuss.elastic.co/t/grok-fails-in-logstash-with-grokparsefailure-but-ok-in-grokdebugger/221015 "2020-02-26T10:47:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ifishy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ifishy/32/63330_2.png) [@ifishy](https://discuss.elastic.co/u/ifishy)\
**Post date:** [February 26, 2020, 10:47am UTC](https://discuss.elastic.co/t/grok-fails-in-logstash-with-grokparsefailure-but-ok-in-grokdebugger/221015/1 "2020-02-26T10:47:11Z")

</div>

Hello,  
i've the following text to parse, there are some newlinies and i masked them:  
`Category: RabbitMqMonitorWorker.IRmqMonitor\nEventId: 15670\n\nTest-Cluster: Die Verbindung 'StadtKoeln_TokenProvider (0c1d52e0-67cc-431f-bbc4-caa6ae4d631a)' von kt0510(172.18.33.126) auf Queue 'tokenprovider_rpc' wird vermisst`

here are my grok pattern:  
`Category: %{WORD:rabbit_application}.%{WORD}\\nEventId: %{WORD:rabbit_eventid}\\n\\n%{NOTSPACE:rabbit_cluster}: %{GREEDYDATA:rabbit_message} von %{WORD:rabbit_host}%{GREEDYDATA}`

I don't know, why it isn't matching..

Kind regards  
Wolfgang

---

<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:** [March 25, 2020, 10:47am UTC](https://discuss.elastic.co/t/grok-fails-in-logstash-with-grokparsefailure-but-ok-in-grokdebugger/221015/2 "2020-03-25T10:47:14Z")

</div>

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