# Unsynchronized time in Elasticsearch

**URL:** <https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083>\
**Category:** SIEM\
**Created:** [August 24, 2020, 9:40am UTC](https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083 "2020-08-24T09:40:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bornatalebi](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bornatalebi](https://discuss.elastic.co/u/bornatalebi)\
**Post date:** [August 24, 2020, 9:40am UTC](https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083/1 "2020-08-24T09:40:34Z")

</div>

Hi  
Today when I created a rule in SIEM the "last run" field showed "in 3 hours". after some digging, I found that the clock in the ELK machine(single node cluster, centos 7) was behind. I correct it using ntp and now when i use **timedatectl** command it shows the correct time (same as my browser) but it didn't fix my ELK problem. If I query a document that was created seconds ago the timestamp is 3 hours behind. same problem in the discover tab. should I restart my machine?  
-elk version: 7.8

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [August 26, 2020, 5:51am UTC](https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083/2 "2020-08-26T05:51:06Z")

</div>

Maybe you see UTC time zone?  
Are you located in UTC+3?

---

<div class="post-metadata">

**Author:** ![bornatalebi](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bornatalebi](https://discuss.elastic.co/u/bornatalebi)\
**Post date:** [August 26, 2020, 8:28am UTC](https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083/3 "2020-08-26T08:28:20Z")

</div>

Yes, that's correct. the timestamps are based on UTC and the browser automatically adds the timezone but somehow instead of +3 hours, kibana showed +6 hours.

after I restart the elk machine the problem got solved.

---

<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 23, 2020, 8:28am UTC](https://discuss.elastic.co/t/unsynchronized-time-in-elasticsearch/246083/4 "2020-09-23T08:28:29Z")

</div>

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