# Need some support to create custom grok filter to parse the log file

**URL:** <https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196>\
**Category:** Logstash\
**Created:** [September 2, 2017, 4:30pm UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196 "2017-09-02T16:30:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![viuha8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viuha8/32/21889_2.png) [@viuha8](https://discuss.elastic.co/u/viuha8)\
**Post date:** [September 2, 2017, 4:30pm UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196/1 "2017-09-02T16:30:56Z")

</div>

Need some advice to create custom grok filter inorder to parse application specific log.

Our log format looks like

2017-08-29 14:49:28 INFO Logger:? - 'ApplicationName':string, 'EventStatus':string, 'SeverityLevel':string, 'EventTime':string, 'ErrorDescription':string, 'ErrorCode':string, 'IsSecurityIncident':string, 'UrlRequested':string, 'MethodName':string, 'CurrentUser':string, 'RequestedIp':string, 'TransactionId':string, 'ActionMethod':string, 'MessageFormat':string, 'MessageParameters':{}

We are using windows server 2008 R2 OS and Logstash 5.5.2 version.

---

<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:** [September 3, 2017, 6:46pm UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196/2 "2017-09-03T18:46:39Z")

</div>

Looks like a job for the kv filter. Use a grok filter to extract the timestamp and the loglevel (and perhaps the logger name) into discrete fields and stuff the rest of the log message into a field that you feed to a kv filter.

---

<div class="post-metadata">

**Author:** ![viuha8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/viuha8/32/21889_2.png) [@viuha8](https://discuss.elastic.co/u/viuha8)\
**Post date:** [September 7, 2017, 3:27pm UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196/3 "2017-09-07T15:27:11Z")

</div>

thanks for your guidance and support. Using Grok filter itself , i am able to complete this parsing task.

Also is there any way we can monitor the SSIS Package execution log file data using ELK.

---

<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:** [September 8, 2017, 6:08am UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196/4 "2017-09-08T06:08:08Z")

</div>

> Also is there any way we can monitor the SSIS Package execution log file data using ELK.

Probably but I don't know anything about that kind of log.

---

<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:** [October 6, 2017, 6:08am UTC](https://discuss.elastic.co/t/need-some-support-to-create-custom-grok-filter-to-parse-the-log-file/99196/5 "2017-10-06T06:08:25Z")

</div>

Closed on October 6, 2017, 6:08am UTC

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