# Is it possible to use custom indices for one APM agent

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117>\
**Category:** APM\
**Tags:** server\
**Created:** [June 24, 2022, 1:35pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117 "2022-06-24T13:35:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [June 24, 2022, 1:35pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117/1 "2022-06-24T13:35:09Z")

</div>

Hi,

Is it possible to use custom indices for one APM agent in elastic 8+ ( with fleet) .  
I want to restrict the accessibility of one app to a specific space using RBAC.

---

<div class="post-metadata">

**Author:** ![bmorelli25](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bmorelli25/32/38738_2.png) [@bmorelli25](https://discuss.elastic.co/u/bmorelli25)\
**Post date:** [June 24, 2022, 6:58pm UTC](https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117/2 "2022-06-24T18:58:57Z")

</div>

Hi @swchandu

Have you seen [this documentation](https://www.elastic.co/guide/en/kibana/current/apm-spaces.html)?

You can create a filtered alias that matches the `service.name` of the service that is producing the data you want to restrict. You can then create a new Kibana Space and update the APM index settings for that space.

You'd also likely want to create a filtered alias for all other services and configure them to a different space. This would separate your data into two different spaces that you could individually control access to.

---

<div class="post-metadata">

**Author:** ![swchandu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swchandu/32/95295_2.png) [@swchandu](https://discuss.elastic.co/u/swchandu)\
**Post date:** [June 27, 2022, 7:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117/3 "2022-06-27T07:49:25Z")

</div>

Thank you very much.

---

<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:** [July 18, 2022, 3:49am UTC](https://discuss.elastic.co/t/is-it-possible-to-use-custom-indices-for-one-apm-agent/308117/4 "2022-07-18T03:49:49Z")

</div>

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