# Customize the indices name for ingesting data by elastic agent

**URL:** <https://discuss.elastic.co/t/customize-the-indices-name-for-ingesting-data-by-elastic-agent/332854>\
**Category:** Elastic Agent\
**Created:** [May 9, 2023, 2:12am UTC](https://discuss.elastic.co/t/customize-the-indices-name-for-ingesting-data-by-elastic-agent/332854 "2023-05-09T02:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaydenchan1983](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Jaydenchan1983](https://discuss.elastic.co/u/Jaydenchan1983)\
**Post date:** [May 9, 2023, 2:12am UTC](https://discuss.elastic.co/t/customize-the-indices-name-for-ingesting-data-by-elastic-agent/332854/1 "2023-05-09T02:12:05Z")

</div>

I have installed elastic agent in 2 web server to collect iis log. Both log data are ingested to same indices.  
How could set different indices for different server data?

---

<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 6, 2023, 2:12am UTC](https://discuss.elastic.co/t/customize-the-indices-name-for-ingesting-data-by-elastic-agent/332854/2 "2023-06-06T02:12:42Z")

</div>

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