# How to change logstash locale

**URL:** <https://discuss.elastic.co/t/how-to-change-logstash-locale/239729>\
**Category:** Logstash\
**Created:** [July 3, 2020, 4:46am UTC](https://discuss.elastic.co/t/how-to-change-logstash-locale/239729 "2020-07-03T04:46:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jang](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jang](https://discuss.elastic.co/u/jang)\
**Post date:** [July 3, 2020, 4:46am UTC](https://discuss.elastic.co/t/how-to-change-logstash-locale/239729/1 "2020-07-03T04:46:31Z")

</div>

hi.  
I'm using elastic stack.  
i want to logstash locale.  
The default location is 9 hours slower than the area I live in.

my logstash.conf

```auto
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"

```

run it with the above settings,

the value I expected

- beat-2020.07.03

actual value

- beat-2020.07.02

Because the Rogue locale time is different from my region.(9 hours gap)  
How can I set it up?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 6, 2020, 9:47pm UTC](https://discuss.elastic.co/t/how-to-change-logstash-locale/239729/2 "2020-07-06T21:47:45Z")

</div>

The Elastic Stack uses UTC for all timestamped things. So when you are in Kibana, it will show you the timezone that is set for the browser, which should "fix" the problem you are seeing.

---

<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:** [August 3, 2020, 9:47pm UTC](https://discuss.elastic.co/t/how-to-change-logstash-locale/239729/3 "2020-08-03T21:47:48Z")

</div>

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