# Capturing all messages in a log

**URL:** <https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261>\
**Category:** Logstash\
**Created:** [July 30, 2020, 5:49pm UTC](https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261 "2020-07-30T17:49:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eyts](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@eyts](https://discuss.elastic.co/u/eyts)\
**Post date:** [July 30, 2020, 5:49pm UTC](https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261/1 "2020-07-30T17:49:24Z")

</div>

I'm trying to capture all the messages in a log.

For example, we get this log that contains 6 messages.

"message":["18.59.43 STC47873 +LRGPSEVRI\u000007/29/20 18:59:43 I West Logged on to Tandem/Base24.","18.59.43 STC47873 +LRGPSEVRI\u000007/29/20 18:59:43 I West Logged off from Tandem/Base24.","18.59.43 STC47873 +LRGPSEVRI\u000007/29/20 18:59:43 I West Environment reset ok","18.59.43 STC47873 +LRGPSEVRE\u000007/29/20 18:59:43 E West Maximum resets occurred for task","18.59.43 STC47873 +LRGPSEVRE\u000007/29/20 18:59:43 E West Base24/Tandem comm error . Run job PRGSWSVR when resolved.","18.59.43 STC47873 +LRGPSEVRI\u000007/29/20 18:59:43 I West Server is ending","\u0000 "],"seq":{"w":"3","c":"32347"}}

All of these messages match same grok pattern that I coded.  
However, I noticed that once a grok found a match in one of the messages, it will ignore the rest of the logs.

Is it possible to capture all 6 messages and send it to Kibana?

I would greatly appreciate any suggestions. Needless to say, I am new to grok and I tried everything I found in google but nothing seem to work for this particular case.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 31, 2020, 12:23am UTC](https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261/2 "2020-07-31T00:23:49Z")

</div>

Welcome to our community! 😃

You probably want to use something like [dissect](https://www.elastic.co/guide/en/logstash/current/plugins-filters-dissect.html) to split the message before you run grok on each one.

---

<div class="post-metadata">

**Author:** ![eyts](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@eyts](https://discuss.elastic.co/u/eyts)\
**Post date:** [July 31, 2020, 2:13am UTC](https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261/3 "2020-07-31T02:13:24Z")

</div>

Thanks, Mark, for the welcome and suggestions. 🙂  
I will look dissect up.  
The problem with the log we are getting is that we don't get the same number of messages in it.  
Sometimes we only get 1 and sometime more than that and can reach up to 20, from the cases I've seen.

I have yet to see the result of the stack trace I read about and applied. I'm not hopeful.

---

<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:** [August 28, 2020, 2:13am UTC](https://discuss.elastic.co/t/capturing-all-messages-in-a-log/243261/4 "2020-08-28T02:13:24Z")

</div>

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