# Logstash-grok filter pattern

**URL:** <https://discuss.elastic.co/t/logstash-grok-filter-pattern/90251>\
**Category:** Logstash\
**Created:** [June 21, 2017, 9:23am UTC](https://discuss.elastic.co/t/logstash-grok-filter-pattern/90251 "2017-06-21T09:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackOcean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blackocean/32/19722_2.png) [@blackOcean](https://discuss.elastic.co/u/blackOcean)\
**Post date:** [June 21, 2017, 9:23am UTC](https://discuss.elastic.co/t/logstash-grok-filter-pattern/90251/1 "2017-06-21T09:23:45Z")

</div>

this is my sample.log

```
2017-01-03 05:40:49.693 INFO main --- com.getsentry.raven.DefaultRavenFactory : Using an HTTP connection to Sentry.
2017-01-03 05:40:49.935 INFO background-preinit --- org.hibernate.validator.internal.util.Version : HV000001: Hibernate Validator 5.2.4.Final

```

Can you somebody suggest grok pattern for the same with stacktrace also if possible.

---

<div class="post-metadata">

**Author:** ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)\
**Post date:** [June 21, 2017, 9:27am UTC](https://discuss.elastic.co/t/logstash-grok-filter-pattern/90251/2 "2017-06-21T09:27:59Z")

</div>

you can use [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/) to build the pattern that maches those log lines

---

<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:** [July 19, 2017, 9:28am UTC](https://discuss.elastic.co/t/logstash-grok-filter-pattern/90251/3 "2017-07-19T09:28:23Z")

</div>

Closed on July 19, 2017, 9:28am UTC

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