# Grok regex help

**URL:** https://discuss.elastic.co/t/grok-regex-help/139597
**Category:** Logstash
**Created:** [July 11, 2018, 2:38pm UTC](https://discuss.elastic.co/t/grok-regex-help/139597 "2018-07-11T14:38:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DanV](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@DanV](https://discuss.elastic.co/u/DanV)
#### Post date: [July 11, 2018, 2:38pm UTC](https://discuss.elastic.co/t/grok-regex-help/139597/1 "2018-07-11T14:38:02Z")

</div>

Hello,

i'm parsing a firewall log that has it's fields separated by " ; ", using this to my advantage i decided to apply the csv filter to the log using ";" as my separator. The problem appears when one of the columns generated by the csv filter appears in the following manner:

```
"column1" => "Fri Jun 29 11:14:47 Control host CPLogToSyslog: ContentVersion: 5"

```

From this column i need to extract the fields: "Control host CPLogToSyslog" and "ContentVersion".

Looking at the grok i saw regex could be used to extract the values, but i'm not able to make it work haha.

Can someone give me any leads on a way to solve this?

Thanks!

---

<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: [July 12, 2018, 9:19am UTC](https://discuss.elastic.co/t/grok-regex-help/139597/2 "2018-07-12T09:19:27Z")

</div>

Have you tried using the grok constructor website?

---

<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 9, 2018, 9:19am UTC](https://discuss.elastic.co/t/grok-regex-help/139597/3 "2018-08-09T09:19:28Z")

</div>

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