# Why second grok fails?

**URL:** <https://discuss.elastic.co/t/why-second-grok-fails/161086>\
**Category:** Logstash\
**Created:** [December 17, 2018, 7:46am UTC](https://discuss.elastic.co/t/why-second-grok-fails/161086 "2018-12-17T07:46:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamespb](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jamespb](https://discuss.elastic.co/u/jamespb)\
**Post date:** [December 17, 2018, 7:46am UTC](https://discuss.elastic.co/t/why-second-grok-fails/161086/1 "2018-12-17T07:46:21Z")

</div>

Tried many way still fail. Thanks a lot for helping

filter {  
grok {  
match =\> {"message" =\> ["(?\<message\_date\>^[0-9]+-[0-9]+-[0-9]+)%{SPACE}(?\<message\_time\>[0-9]+:[0-9]+:[0-9]+)%{SPACE}(?\<message\_number\>[0-9]+-[0-9]+)%{SPACE}%{WORD:message\_type}%{SPACE}%{QS:main\_message}"]}  
}

```
 if "\:" in [message_main]
 {

```

grok {  
match =\> {"message\_main" =\> ["(?\<process\_name\>(.+?):)(?\<message\_main2\>(.+?)$)"]}  
}  
}  
}

# main\_message= "44wwTSP:icscf2bb2.RtpAudMgr01: File: g:roup solidTraceFiles (path /var/RtpDb) is large: 152 MB"

---

<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:** [January 14, 2019, 7:46am UTC](https://discuss.elastic.co/t/why-second-grok-fails/161086/2 "2019-01-14T07:46:22Z")

</div>

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