# Need some help for parsing Log

**URL:** <https://discuss.elastic.co/t/need-some-help-for-parsing-log/76836>\
**Category:** Logstash\
**Created:** [February 28, 2017, 5:12pm UTC](https://discuss.elastic.co/t/need-some-help-for-parsing-log/76836 "2017-02-28T17:12:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wawa](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@wawa](https://discuss.elastic.co/u/wawa)\
**Post date:** [February 28, 2017, 5:12pm UTC](https://discuss.elastic.co/t/need-some-help-for-parsing-log/76836/1 "2017-02-28T17:12:58Z")

</div>

Hi logstash community,

I'm trying to get some sort of grok pattern to work with the following logging format :  
2017-02-21 23:45:41.7734 | MyLogger | INFO | PathInfo [/json/api/GetData] Duration [821,1381 ms] IpAddress [xx.xx.xx.xx] RequestParam [{"MyObj":{"UserId":87026,"SessionId":1022977,}]

Where RequestParam is an optional field, but i'm a grok newbie so i can't find the working pattern for this line of log

---

<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:** [March 1, 2017, 6:57am UTC](https://discuss.elastic.co/t/need-some-help-for-parsing-log/76836/2 "2017-03-01T06:57:50Z")

</div>

Have you tried using [http://grokconstructor.appspot.com/do/construction](http://grokconstructor.appspot.com/do/construction)?

---

<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:** [March 29, 2017, 6:58am UTC](https://discuss.elastic.co/t/need-some-help-for-parsing-log/76836/3 "2017-03-29T06:58:00Z")

</div>

Closed on March 29, 2017, 6:58am UTC

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