# Date filter to parse custom date

**URL:** <https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814>\
**Category:** Logstash\
**Created:** [June 21, 2018, 9:14am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814 "2018-06-21T09:14:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![punit\_j](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@punit\_j](https://discuss.elastic.co/u/punit_j)\
**Post date:** [June 21, 2018, 9:14am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814/1 "2018-06-21T09:14:24Z")

</div>

Hi, I have a storage device which prints date as below:

Date: Wed Oct 26 16:13:33 JST 2016

How do I parse this date using date filter ?

---

<div class="post-metadata">

**Author:** ![AurelienG](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AurelienG](https://discuss.elastic.co/u/AurelienG)\
**Post date:** [June 21, 2018, 9:31am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814/2 "2018-06-21T09:31:35Z")

</div>

Hello,  
I would try something like "EEE MMM dd HH:mm:ss 'JST' yyyy".

---

<div class="post-metadata">

**Author:** ![punit\_j](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@punit\_j](https://discuss.elastic.co/u/punit_j)\
**Post date:** [June 21, 2018, 10:24am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814/3 "2018-06-21T10:24:05Z")

</div>

doesnot seem to work time zone offset reflects 000Z

Wed Oct 2616:13:33 JST 2016 converts to 2016-10-26T20:13:33.000Z

Not sure what this 000 means

---

<div class="post-metadata">

**Author:** ![AurelienG](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AurelienG](https://discuss.elastic.co/u/AurelienG)\
**Post date:** [June 21, 2018, 10:36am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814/4 "2018-06-21T10:36:16Z")

</div>

I think 000 is just the milliseconds, and there's an offset of 4 hours because Elasticsearch uses UTC and I guess you don't. There's a timezone parameter for the date filter plugin, you should try with that.

---

<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, 2018, 10:48am UTC](https://discuss.elastic.co/t/date-filter-to-parse-custom-date/136814/5 "2018-07-19T10:48:21Z")

</div>

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