# Grok for WebSphere log

**URL:** <https://discuss.elastic.co/t/grok-for-websphere-log/216599>\
**Category:** Logstash\
**Created:** [January 27, 2020, 5:39am UTC](https://discuss.elastic.co/t/grok-for-websphere-log/216599 "2020-01-27T05:39:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnalichingonda](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@swapnalichingonda](https://discuss.elastic.co/u/swapnalichingonda)\
**Post date:** [January 27, 2020, 5:39am UTC](https://discuss.elastic.co/t/grok-for-websphere-log/216599/1 "2020-01-27T05:39:24Z")

</div>

Hi,

please help me to define grok for below log

{ "sysdate":"[08/Jun/2019:00:00:12 -0400]", "site":"[cdbeser.net](http://cdbeser.net)", "host":"[lmw.net](http://lmw.net)", "method":"POST", "request":"/services/servicePath", "querystring":"", "port":"4413", "username":"-", "cookie":"000eyoCaOciM:1b68jpu1f:1bv8bktat", "coauthsessionid":"-", "clienthost":"14.25.10.41", "httpversion":"HTTP/1.1", "useragent":"-", "referer":"-", "responsestatus":"20", "subresponse":"0", "win32status":"0", "sbytes":"799", "cbytes":"0", "timetaken":"3595" }

---

<div class="post-metadata">

**Author:** ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)\
**Post date:** [January 27, 2020, 9:17am UTC](https://discuss.elastic.co/t/grok-for-websphere-log/216599/2 "2020-01-27T09:17:46Z")

</div>

Hi,

No need to grok i saw your log is valid in JSON format so you'll have to try something like :

```auto
json {
                                source => "message"
                                add_tag => ["json"]
                        }

```

See [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-json.html)

---

<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:** [February 24, 2020, 9:26am UTC](https://discuss.elastic.co/t/grok-for-websphere-log/216599/3 "2020-02-24T09:26:12Z")

</div>

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