# Converting date dynamically using logstash

**URL:** <https://discuss.elastic.co/t/converting-date-dynamically-using-logstash/151560>\
**Category:** Logstash\
**Created:** [October 9, 2018, 6:47am UTC](https://discuss.elastic.co/t/converting-date-dynamically-using-logstash/151560 "2018-10-09T06:47:35Z")\
**Posts on this page:** 2\
**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:** [October 9, 2018, 6:47am UTC](https://discuss.elastic.co/t/converting-date-dynamically-using-logstash/151560/1 "2018-10-09T06:47:36Z")

</div>

I have date from logs in below format:

2018-10-06 04:25:43 EDT here the timezone could change to SGT or something else as we have global presence of servers being quieries by filebeat.

How do I use date filter to handle this ?

i used grok to extract the field and change it to joda time -5:00

however I cant do that for every timezone. Is there a way to do dynamically ?

---

<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:** [November 6, 2018, 6:48am UTC](https://discuss.elastic.co/t/converting-date-dynamically-using-logstash/151560/2 "2018-11-06T06:48:07Z")

</div>

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