# Log Grok does not work

**URL:** https://discuss.elastic.co/t/log-grok-does-not-work/146810
**Category:** Logstash
**Created:** [August 31, 2018, 6:29am UTC](https://discuss.elastic.co/t/log-grok-does-not-work/146810 "2018-08-31T06:29:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aroldev](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@aroldev](https://discuss.elastic.co/u/aroldev)
#### Post date: [August 31, 2018, 6:29am UTC](https://discuss.elastic.co/t/log-grok-does-not-work/146810/1 "2018-08-31T06:29:07Z")

</div>

Hello elastic community,

I want to parse some log lines and send it to my elasticsearch engine.

My Log looks like this:

`2018-08-27T11:56:35:537 | SERVERNAME | 19140 | processname | 27 | 127.0.0.1 | | 0 | Verbose | **** SomeProcessInformation ->GenerateXmlNode(XmlDocument xmldoc, DataRow row) | Leaving. Time needed: 0 ms`

I want to grok that lines with

`match => {"message" => "%{TIMESTAMP_ISO8601:timestamp}\s\W\s{PROG:hostname}\s\W\s%{POSINT:process_id:int}\s\W\s%{PROG:process_name}\s\W\s%{POSINT:thread_id:int}\s\W\s%{IPORHOST:client_ip}\s\W\s{POSINT:ramUsed:int}\s\W\s%{POSINT:event_id:int}\s\W\s%{WORD:log_level}\s\W\sLeaving. Time needed: %{POSINT:time_used:int}"`

When I look into my kibana, the grok does not work. I can only read the plain message.

Can sb. tell my what I made wrong here ?

---

<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 31, 2018, 5:10pm UTC](https://discuss.elastic.co/t/log-grok-does-not-work/146810/2 "2018-08-31T17:10:01Z")

</div>

Focus on the part just after "127.0.0.1". There appears to be an empty column afterwards that you're trying to parse into `ramUsed`.

---

<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 28, 2018, 5:10pm UTC](https://discuss.elastic.co/t/log-grok-does-not-work/146810/3 "2018-09-28T17:10:09Z")

</div>

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