# How to parse dd MMM HH:mm:ss IST date format?

**URL:** <https://discuss.elastic.co/t/how-to-parse-dd-mmm-hh-mm-ss-ist-date-format/87172>\
**Category:** Logstash\
**Created:** [May 25, 2017, 7:17pm UTC](https://discuss.elastic.co/t/how-to-parse-dd-mmm-hh-mm-ss-ist-date-format/87172 "2017-05-25T19:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [May 25, 2017, 7:17pm UTC](https://discuss.elastic.co/t/how-to-parse-dd-mmm-hh-mm-ss-ist-date-format/87172/1 "2017-05-25T19:17:59Z")

</div>

Hi Experts,

I have date value like  
**15 May 2017 11:52:59 IST**  
Here I am not sure how to handle IST  
Please suggest in Logstash what date format I can apply on this value .  
I used  
date {match =\> ["endTime","dd MMM YYYY HH:mm:ss","ISO8601"] target =\> "endTime"}  
**OR**  
date {match =\> ["endTime","dd MMM YYYY HH:mm:ss Z"] target =\> "endTime"}

It did not work for me .

Regards  
VG

---

<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:** [May 29, 2017, 6:42pm UTC](https://discuss.elastic.co/t/how-to-parse-dd-mmm-hh-mm-ss-ist-date-format/87172/2 "2017-05-29T18:42:10Z")

</div>

The date filter can't parse timezone _names_. Two options:

- If the timestamp is always IST, hardcode a suitable timezone in the date filter's `timezone` option and use `dd MMM yyyy HH:mm:ss 'IST'` is your date filter pattern.
- If the timezone can vary, extract it into a field and feed it through a translate filter to transform it into a UTC offset that the date filter _can_ parse.

---

<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:** [June 26, 2017, 6:42pm UTC](https://discuss.elastic.co/t/how-to-parse-dd-mmm-hh-mm-ss-ist-date-format/87172/3 "2017-06-26T18:42:19Z")

</div>

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