# Segregating data sent from Elastic-Agents or Beats to a Specified Index

**URL:** <https://discuss.elastic.co/t/segregating-data-sent-from-elastic-agents-or-beats-to-a-specified-index/338811>\
**Category:** Elastic Agent\
**Created:** [July 19, 2023, 5:32pm UTC](https://discuss.elastic.co/t/segregating-data-sent-from-elastic-agents-or-beats-to-a-specified-index/338811 "2023-07-19T17:32:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkward](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkward/32/95305_2.png) [@pkward](https://discuss.elastic.co/u/pkward)\
**Post date:** [July 19, 2023, 5:32pm UTC](https://discuss.elastic.co/t/segregating-data-sent-from-elastic-agents-or-beats-to-a-specified-index/338811/1 "2023-07-19T17:32:47Z")

</div>

Hello,

I'm ingesting data from multiple systems and different system owners. I have multi-tenancy set up using Kibana spaces and roles, but all of the data is being sent to a single index. I would like to store my data in individual indices based on system owner. For example, if System Owner A has an Elastic-Agent on their Linux server and System Owner B has an Elastic-Agent on their Linux server forwarding logs, System Owner A index will be systemowner-A-Linux and System Owner B index will be systemowner-B-Linux. This way I can give the System Owner A read permissions to their data and System Owner B read permissions to their data. Can this be done through Index Templates? If so, how would I go about this? If not, what would be the best way to accomplish this?

---

<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:** [August 16, 2023, 5:33pm UTC](https://discuss.elastic.co/t/segregating-data-sent-from-elastic-agents-or-beats-to-a-specified-index/338811/2 "2023-08-16T17:33:40Z")

</div>

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