# Elastic cloud APM server time based index template

**URL:** <https://discuss.elastic.co/t/elastic-cloud-apm-server-time-based-index-template/321076>\
**Category:** APM\
**Tags:** server\
**Created:** [December 13, 2022, 12:00am UTC](https://discuss.elastic.co/t/elastic-cloud-apm-server-time-based-index-template/321076 "2022-12-13T00:00:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Ali\_Nazemian](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@Ali\_Nazemian](https://discuss.elastic.co/u/Ali_Nazemian)\
**Post date:** [December 13, 2022, 6:55am UTC](https://discuss.elastic.co/t/elastic-cloud-apm-server-time-based-index-template/321076/7 "2022-12-13T06:55:18Z")

</div>

Here are a couple of previous threads:

> [@How can I create a APM Template with timestamps and the 0000n (for ILM)](https://discuss.elastic.co/t/how-can-i-create-a-apm-template-with-timestamps-and-the-0000n-for-ilm/302338):
>
> Hello to the community, I am trying to setup APM with an ILM that I configured manually. If I use the default index available in the output.Elasticsearch, I get indexes similar to "apm-7.16.3-error-000001". I now need to add a timestamp to my indexes so that I can know at which date they were created without having to go thru the details of each index individually. I have referred to the the below docs and pages and tried to get to the mentioned config : [How to set ElasticSearch Apm Server i…](https://discuss.elastic.co/t/how-to-set-elasticsearch-apm-server-indexing-template-as-yyyy-mm/177811)

> [@How to set ElasticSearch Apm Server indexing template as YYYY.mm?](https://discuss.elastic.co/t/how-to-set-elasticsearch-apm-server-indexing-template-as-yyyy-mm/177811):
>
> I just created Apm server it looks awesome but Indexing like that"Apm-6.6.2-2019.04.19" doesn't make sense because I will have at the end of the month 30 logs. I want to use change "apm-%{[beat.version]}-%{+yyyy.MM}" instead of "apm-%{[beat.version]}-%{+yyyy.MM.dd}" Below code is my purpose but it's not working: Kibana,Elastic.Apm : 6.6.2 apm-server: host: mycompany.name.com:8200 output.elasticsearch: # Array of hosts to connect to. hosts: ["http://mycompany.name.com:9200"] index: "a…

---

_[View the full topic](https://discuss.elastic.co/t/elastic-cloud-apm-server-time-based-index-template/321076)._
