# How to split Grok Message

**URL:** <https://discuss.elastic.co/t/how-to-split-grok-message/156592>\
**Category:** Logstash\
**Created:** [November 14, 2018, 7:15am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592 "2018-11-14T07:15:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [November 14, 2018, 7:15am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592/1 "2018-11-14T07:15:09Z")

</div>

Hi All,

I'm trying to read the access log using gork filter. but i am unable to split the message.  
can anybody help.

Here is my config file and sample output

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83ac6fcb40b7a82aea1c0855681187a2a835b879.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/9/4999cf6a18f2cff881134853ccba8d5412adb1b6.png)

Thanks in advance .

Sripal

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 14, 2018, 7:26am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592/2 "2018-11-14T07:26:58Z")

</div>

The pattern you have configured does not match your data. The first field is not a pure IP address, but also seems to contain a port number, which you will need to account for. Have a look [at this introductory blog post](https://www.elastic.co/blog/a-practical-introduction-to-logstash) which shows you how to work with Logstash and develop grok patterns.

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [November 14, 2018, 9:20am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592/3 "2018-11-14T09:20:51Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> which shows you how to work with Logstash and develop grok patterns.

@Christian_Dahlqvist Thank you for the reply. It's very useful to me. I'll let you know my status once done.

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [November 14, 2018, 10:08am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592/4 "2018-11-14T10:08:55Z")

</div>

@Christian_Dahlqvist Thank you soo much.  
Now its working

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/1/415d576ef3455b6e1def8fb668ed287ee63062c0.png)

---

<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 12, 2018, 10:18am UTC](https://discuss.elastic.co/t/how-to-split-grok-message/156592/5 "2018-12-12T10:18:16Z")

</div>

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