# Create multiple APM indexes, one per app

**URL:** <https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801>\
**Category:** APM\
**Tags:** server\
**Created:** [September 7, 2020, 7:11pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801 "2020-09-07T19:11:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![windmaker](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@windmaker](https://discuss.elastic.co/u/windmaker)\
**Post date:** [September 7, 2020, 7:11pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/1 "2020-09-07T19:11:56Z")

</div>

Hi all,

This afternoon I have been experimenting with Elastic + Kibana + APM server. I've successfully configured two Python apps an explored results for some time.

After that I wanted to know how this data is being distributed trough elasticsearch indexes. It seems that all apps info is stored in the same index.

I have tried to change index name and pattern in order to create groups of indexes for each app. Is it possible? Could you please provide some examples, I didn't find any guide in the official docs.

If those indexes cannot be separated by app, is it possible to restrict access for each app metrics to different users?

Thank you!

---

<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:** [September 7, 2020, 9:00pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/2 "2020-09-07T21:00:54Z")

</div>

Welcome to our community! 😃

Have a look at [Storing APM data in custom/specific indices](https://discuss.elastic.co/t/storing-apm-data-in-custom-specific-indices/246381) 🙂

---

<div class="post-metadata">

**Author:** ![windmaker](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@windmaker](https://discuss.elastic.co/u/windmaker)\
**Post date:** [September 7, 2020, 9:14pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/3 "2020-09-07T21:14:31Z")

</div>

Thanks! It looks promising, I'll try it tomorrow morning!

I assume that I'll have to uncomment the following lines regarding to index templating.

```auto
setup.template.name: "apm-server"
setup.template.pattern: "apm-*"

```

Thanks again

---

<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:** [September 7, 2020, 9:34pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/4 "2020-09-07T21:34:19Z")

</div>

I can't answer that one sorry, don't know the details of it.

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [September 8, 2020, 2:09am UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/5 "2020-09-08T02:09:16Z")

</div>

> [@windmaker](#):
>
> I assume that I'll have to uncomment the following lines regarding to index templating.
> 
> ```auto
> setup.template.name: "apm-server"
> setup.template.pattern: "apm-*"
> 
> ```

If you follow the configuration in the post Mark linked to, then you should not need to change `setup.template.*`. You would only need to change those if the index prefix changes. In the linked topic, it remains the same as the default (`"apm-%{[observer.version]}-"`)

---

<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:** [September 8, 2020, 2:54am UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/6 "2020-09-08T02:54:28Z")

</div>

Ahh just like Beats! 😃

---

<div class="post-metadata">

**Author:** ![windmaker](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@windmaker](https://discuss.elastic.co/u/windmaker)\
**Post date:** [September 8, 2020, 8:25pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/7 "2020-09-08T20:25:01Z")

</div>

It worked!

Thank you all,

BTW, no need to change templates as you said.

---

<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 29, 2020, 4:25pm UTC](https://discuss.elastic.co/t/create-multiple-apm-indexes-one-per-app/247801/8 "2020-09-29T16:25:07Z")

</div>

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