# Timestamp is not correct

**URL:** <https://discuss.elastic.co/t/timestamp-is-not-correct/310278>\
**Category:** Logs\
**Created:** [July 21, 2022, 11:34am UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278 "2022-07-21T11:34:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [July 21, 2022, 11:34am UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/1 "2022-07-21T11:34:42Z")

</div>

I have the problem that the time does not match the one in the log file.

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/5/b52fba3a424b374bd67dc571fc1ab917a484adc1.png)

What can I do about it ?

It only occurs with this log file (filebeat). On another system, where Logstash is running, this does not occur.

Unfortunately there is no Exim module for Logstash.

Can someone help me ?

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [July 22, 2022, 4:20pm UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/2 "2022-07-22T16:20:24Z")

</div>

I suppose it is a problem with timezone.

your local datetime may be  
"2022-07-21 10:11:22+02:00"  
but if imported to es without its timezone something like "2022-07-21 10:11:22",  
it could be regarded as "2022-07-21 10:11:22Z" equals to "2022-07-21 12:11:22+02:00", which could be displayed as "2022-07-21 12:11:22" in kibana.

Try [date filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-timezone) with timezone.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [July 22, 2022, 4:42pm UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/3 "2022-07-22T16:42:40Z")

</div>

Elastic converts incoming time to UTC  
Kibana converts it back to your local time.

check in kibana and this event should show up at 2022-07-21 10:11:22

---

<div class="post-metadata">

**Author:** ![BaseSL](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BaseSL](https://discuss.elastic.co/u/BaseSL)\
**Post date:** [July 25, 2022, 11:21am UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/4 "2022-07-25T11:21:17Z")

</div>

Where do I check this and where do I set the time zone correctly ? On the server where ELK runs and where exim runs, the correct time zone is active.

---

<div class="post-metadata">

**Author:** ![matschaffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matschaffer/32/95396_2.png) [@matschaffer](https://discuss.elastic.co/u/matschaffer)\
**Post date:** [August 22, 2022, 5:32am UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/5 "2022-08-22T05:32:53Z")

</div>

You can use the `dateFormat:tz` advanced setting shown on [Advanced Settings | Kibana Guide [master] | Elastic](https://www.elastic.co/guide/en/kibana/master/advanced-options.html) to change it to "UTC" to display UTC.

The default of `Browser` will show browser-local time according to your OS clock.

---

<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:** [September 19, 2022, 5:33am UTC](https://discuss.elastic.co/t/timestamp-is-not-correct/310278/6 "2022-09-19T05:33:40Z")

</div>

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