# Logstash grok filter

**URL:** <https://discuss.elastic.co/t/logstash-grok-filter/75813>\
**Category:** Logstash\
**Created:** [February 21, 2017, 3:55am UTC](https://discuss.elastic.co/t/logstash-grok-filter/75813 "2017-02-21T03:55:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSundareswaran](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@RSundareswaran](https://discuss.elastic.co/u/RSundareswaran)\
**Post date:** [February 21, 2017, 3:55am UTC](https://discuss.elastic.co/t/logstash-grok-filter/75813/1 "2017-02-21T03:55:19Z")

</div>

I have a log file which has a date time in 'yyyyMMdd\_HHmmss\_SSS' format. I am successful in parsing this with \_ as delimiter and getting as 3 different text field in ES. But I need this to be converted as ISO\_8601 so I can query and visualize the data by date or by hour or by minute.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 21, 2017, 3:56am UTC](https://discuss.elastic.co/t/logstash-grok-filter/75813/2 "2017-02-21T03:56:28Z")

</div>

Have you looked at the date filter?

---

<div class="post-metadata">

**Author:** ![RSundareswaran](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@RSundareswaran](https://discuss.elastic.co/u/RSundareswaran)\
**Post date:** [February 23, 2017, 2:01am UTC](https://discuss.elastic.co/t/logstash-grok-filter/75813/3 "2017-02-23T02:01:02Z")

</div>

Thanks for your reply, I did some reading about date filter and was able to get it parsed.

---

<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 23, 2017, 2:01am UTC](https://discuss.elastic.co/t/logstash-grok-filter/75813/4 "2017-03-23T02:01:18Z")

</div>

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