# \[CLOSED\]Grok pattern - Help

**URL:** <https://discuss.elastic.co/t/closed-grok-pattern-help/96380>\
**Category:** Logstash\
**Created:** [August 9, 2017, 6:38am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380 "2017-08-09T06:38:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [August 9, 2017, 6:38am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/1 "2017-08-09T06:38:43Z")

</div>

Hello,

My logs are like this, the part I'm interested in is after the absolute time, but if I need use all of the fields there is no problem.

Aug 9 05:54:25 centos-2gb-lon1-01-bro bro\_conn: 1502257999.489181 CHQPvB4hjHMzYqx 8Si 178.62.0.46 51199 87.242.168.84 123 udp - 0.016671 0 48 SHR F F 0 Cd 0 0 1 76 (empty)

Aug 9 05:54:25 centos-2gb-lon1-01-bro bro\_conn: 1502257999.489181 CHQPvB4hjHMzYqx 8Si 178.62.0.46 51199 87.242.168.84 123 udp - 0.016671 0 48 SHR F F 0 Cd 0 0 1 76 (empty)

Aug 9 05:55:15 centos-2gb-lon1-01-bro bro\_conn: 1502258106.470555 CffsI84ZfHek1wg Bl9 198.20.69.74 46640 178.62.0.46 3780 tcp - 0.000060 0 0 REJ F F 0 Sr 1 40 1 40 (empty)

Aug 9 05:55:15 centos-2gb-lon1-01-bro bro\_conn: 1502258106.470555 CffsI84ZfHek1wg Bl9 198.20.69.74 46640 178.62.0.46 3780 tcp - 0.000060 0 0 REJ F F 0 Sr 1 40 1 40 (empty)

Aug 9 05:55:15 centos-2gb-lon1-01-bro bro\_conn: 1502258108.523194 C1rBUa2o3kkL4FH fq7 217.219.43.225 25885 178.62.0.46 23 tcp - 0.000032 0 0 REJ F F 0 Sr 1 40 1 40 (empty)

Thanks for your help,

Pedro Cabral

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 9, 2017, 8:15am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/2 "2017-08-09T08:15:51Z")

</div>

I don't get the question. An example of the desired result might help.

Did you try the grok constructor web site?

---

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [August 9, 2017, 8:48am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/3 "2017-08-09T08:48:07Z")

</div>

Hello Magnusbaeck,

My goal is to create a json with all the values of the message.  
I'm using the grok constructor my problem right now is the :.

Thanks for your help,

Best Regards,  
Pedro Cabral

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 9, 2017, 9:14am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/4 "2017-08-09T09:14:37Z")

</div>

> My goal is to create a json with all the values of the message.

Okay.

> I’m using the grok constructor my problem right now is the :.

The colon? What about it?

---

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [August 9, 2017, 9:17am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/5 "2017-08-09T09:17:28Z")

</div>

It wasn't allowing me to parse the rest of the log but i could solve it.  
Thx anyways

---

<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:** [September 6, 2017, 9:17am UTC](https://discuss.elastic.co/t/closed-grok-pattern-help/96380/6 "2017-09-06T09:17:39Z")

</div>

Closed on September 6, 2017, 9:17am UTC

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