# Metricbeat index date timezone

**URL:** https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 13, 2017, 12:59am UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296 "2017-03-13T00:59:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)
#### Post date: [March 13, 2017, 12:59am UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/1 "2017-03-13T00:59:19Z")

</div>

How do you control the timezone metricbeat uses for the date part of the index name:

For ex:

metricbeat-2017.03.12

Is there a way I can tell metricbeat to use a particular timezone when generating the date part above. I'd like it to use UTC (which is what Filebeat and winlogbeat uses) but is using local.

The reason why this causes a problem is that filebeat and winlogbeat indices rollover to the next day (since it uses UTC) but metricbeat doesn't (since it uses local timezone) so they are not in sync and using 3rd party tools where you set the timezone for the index doesn't work because they are not all the same.

Thanks,  
E

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [March 13, 2017, 7:31am UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/2 "2017-03-13T07:31:09Z")

</div>

I don't think beats can convert timestamps for index names between time-zones yet. Feel free to open an [ehancement request](https://github.com/elastic/beats/issues).

---

<div class="post-metadata">

### Author: ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)
#### Post date: [March 13, 2017, 3:12pm UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/3 "2017-03-13T15:12:22Z")

</div>

Ok, how do you think it works currently for Filebeat and winlogbeat but not for metricbeat ?

What is the index date based on ?

Thanks,  
E

---

<div class="post-metadata">

### Author: ![maddin2016](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maddin2016/32/16599_2.png) [@maddin2016](https://discuss.elastic.co/u/maddin2016)
#### Post date: [March 13, 2017, 3:20pm UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/4 "2017-03-13T15:20:15Z")

</div>

Hi @steffens, @Exocomp

i have created a [PR](https://github.com/elastic/beats/pull/3743). Maybe you have a look on it.

---

<div class="post-metadata">

### Author: ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)
#### Post date: [March 13, 2017, 3:28pm UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/5 "2017-03-13T15:28:10Z")

</div>

@maddin2016 if it allows me to set the timezone for elasticsearch index then I like it, 🙂

---

<div class="post-metadata">

### Author: ![Exocomp](https://avatars.discourse-cdn.com/v4/letter/e/ea5d25/32.png) [@Exocomp](https://discuss.elastic.co/u/Exocomp)
#### Post date: [March 15, 2017, 9:59pm UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/7 "2017-03-15T21:59:42Z")

</div>

I found out the difference, where it is working with filebeat and winlogbeat I'm sending it to through logstash where I'm using the date filter and setting the timezone, I'm sending metricbeat to elasticsearch directly.

---

<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: [April 12, 2017, 9:59pm UTC](https://discuss.elastic.co/t/metricbeat-index-date-timezone/78296/8 "2017-04-12T21:59:52Z")

</div>

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