# Logstash mapping logfile time to @timestamp

**URL:** <https://discuss.elastic.co/t/logstash-mapping-logfile-time-to-timestamp/278772>\
**Category:** Logstash\
**Created:** [July 15, 2021, 11:23am UTC](https://discuss.elastic.co/t/logstash-mapping-logfile-time-to-timestamp/278772 "2021-07-15T11:23:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 15, 2021, 3:29pm UTC](https://discuss.elastic.co/t/logstash-mapping-logfile-time-to-timestamp/278772/4 "2021-07-15T15:29:01Z")

</div>

You can use the `timezone` option in the `date` filter.

Remove your ruby filter as it is just override the `logts` field with the current `utc` time and try this filter.

```auto
date {
  match => ["logts", "ISO8601"]
  timezone => "your/timezone"
}

```

`IST` is ambiguous, it could mean `India Standard Time`, `Irish Standard Time` or `Israel Standar Time`, you need the name of the timezone you are, which would be `Asia/Kolkata`, `Europe/Dublin` or `Asia/Jerusalem` for each one of those cases.

In the case `IST` means `India Standard Time` you would use:

```auto
date {
  match => ["logts", "ISO8601"]
  timezone => "Asia/Kolkata"
}

```

---

_[View the full topic](https://discuss.elastic.co/t/logstash-mapping-logfile-time-to-timestamp/278772)._
