# Parsing a date and timestamp to default Elasticsearch

**URL:** <https://discuss.elastic.co/t/parsing-a-date-and-timestamp-to-default-elasticsearch/291667>\
**Category:** Logstash\
**Created:** [December 13, 2021, 1:58pm UTC](https://discuss.elastic.co/t/parsing-a-date-and-timestamp-to-default-elasticsearch/291667 "2021-12-13T13:58:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 13, 2021, 2:43pm UTC](https://discuss.elastic.co/t/parsing-a-date-and-timestamp-to-default-elasticsearch/291667/3 "2021-12-13T14:43:44Z")

</div>

The date filter does not parse named zone, you should change your match to the one shared in the previous answer.

```auto
date { match => ["event_timestamp", "EEE MMM dd HH:mm:ss 'IST' yyyy"] }

```

Also, you will need to specify your timezone to the filter and you can't use named timezone as well because they can be ambigous, in your case, _IST_ can mean 3 completely different timezones, as explained in this [another question](https://discuss.elastic.co/t/logstash-mapping-logfile-time-to-timestamp/278772/4)

You will need something like this:

```auto
date { 
    match => ["event_timestamp", "EEE MMM dd HH:mm:ss 'IST' yyyy"] 
    timezone => "Asia/Kolkata"
}

```

Assuming that by _IST_, you mean `India Standard Time`, so you should use _Asia/Kolkata_ as the timezone.

---

_[View the full topic](https://discuss.elastic.co/t/parsing-a-date-and-timestamp-to-default-elasticsearch/291667)._
