# How to set the Time Zone in filebeat logstash and apm config

**URL:** https://discuss.elastic.co/t/how-to-set-the-time-zone-in-filebeat-logstash-and-apm-config/305251
**Category:** Beats
**Tags:** filebeat
**Created:** [May 20, 2022, 4:02am UTC](https://discuss.elastic.co/t/how-to-set-the-time-zone-in-filebeat-logstash-and-apm-config/305251 "2022-05-20T04:02:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zhanghao116560](https://avatars.discourse-cdn.com/v4/letter/z/d78d45/32.png) [@zhanghao116560](https://discuss.elastic.co/u/zhanghao116560)
#### Post date: [May 20, 2022, 4:02am UTC](https://discuss.elastic.co/t/how-to-set-the-time-zone-in-filebeat-logstash-and-apm-config/305251/1 "2022-05-20T04:02:03Z")

</div>

hi all:  
How to Set the Time Zone in filebeat, logstash, apm config file like '%{+yyyy.MM.dd}'  
like that I want to set the time zone for '%{+yyyy.MM.dd}'

```auto
index: "apm-%{[observer.version]}-%{+yyyy.MM.dd}"
  indices:
    - index: "apm-%{[observer.version]}-sourcemap"
      when.contains:
        processor.event: "sourcemap"
  #
    - index: "apm-%{[observer.version]}-error-%{+yyyy.MM.dd}"
      when.contains:
        processor.event: "error"
  #
    - index: "apm-%{[observer.version]}-transaction-%{+yyyy.MM.dd}"
      when.contains:
        processor.event: "transaction"
  #
    - index: "apm-%{[observer.version]}-span-%{+yyyy.MM.dd}"
      when.contains:
        processor.event: "span"
  #
    - index: "apm-%{[observer.version]}-metric-%{+yyyy.MM.dd}"
      when.contains:
        processor.event: "metric"
  #
    - index: "apm-%{[observer.version]}-onboarding-%{+yyyy.MM.dd}"
      when.contains:
        processor.event: "onboarding"

```

---

<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: [May 20, 2022, 4:22am UTC](https://discuss.elastic.co/t/how-to-set-the-time-zone-in-filebeat-logstash-and-apm-config/305251/2 "2022-05-20T04:22:19Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<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: [June 17, 2022, 4:23am UTC](https://discuss.elastic.co/t/how-to-set-the-time-zone-in-filebeat-logstash-and-apm-config/305251/3 "2022-06-17T04:23:06Z")

</div>

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