# Time difference in log times

**URL:** <https://discuss.elastic.co/t/time-difference-in-log-times/210179>\
**Category:** Logstash\
**Created:** [December 2, 2019, 12:21pm UTC](https://discuss.elastic.co/t/time-difference-in-log-times/210179 "2019-12-02T12:21:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rj23495](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rj23495](https://discuss.elastic.co/u/rj23495)\
**Post date:** [December 2, 2019, 12:21pm UTC](https://discuss.elastic.co/t/time-difference-in-log-times/210179/1 "2019-12-02T12:21:51Z")

</div>

Hi, i have added a new time field for my log parser and there is a time difference of 2:30 in time that is recorded in ES and the log time. PFA.

 ![35%20PM](https://us1.discourse-cdn.com/elastic/original/3X/0/6/06118b83051b37c5b328f29a4383d92015bf2c72.png)

```
grok { match => { "message" => "%{TIMESTAMP_ISO8601:time} \[%{DATA:pool}\] %{DATA:metric} %{DATA:metricname} %{DATA:datatype} %{NUMBER:metricvalue:float} %{GREEDYDATA:unit}" } }
date { match => ["time" , "ISO8601", "yyyy-MM-dd HH:mm:ss.SSS"]
                   target =>"time" }
```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 2, 2019, 3:21pm UTC](https://discuss.elastic.co/t/time-difference-in-log-times/210179/2 "2019-12-02T15:21:17Z")

</div>

Timestamps in logstash and elasticsearch are always stored in UTC. The [timezone](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-timezone) option to the date filter is used to tell it what timezone the logs are in.

---

<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:** [December 30, 2019, 3:21pm UTC](https://discuss.elastic.co/t/time-difference-in-log-times/210179/3 "2019-12-30T15:21:33Z")

</div>

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