# Service environment vs different service name

**URL:** <https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643>\
**Category:** APM\
**Tags:** java, nodejs\
**Created:** [July 26, 2020, 9:27am UTC](https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643 "2020-07-26T09:27:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny\_Larsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_larsen/32/72800_2.png) [@Danny\_Larsen](https://discuss.elastic.co/u/Danny_Larsen)\
**Post date:** [July 26, 2020, 9:27am UTC](https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643/1 "2020-07-26T09:27:56Z")

</div>

I am setting up APM and I am wondering why I should use the environment option instead of just using different service names.

For example environment production and test or service name service-production and service-test?

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [July 26, 2020, 10:52am UTC](https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643/2 "2020-07-26T10:52:00Z")

</div>

Hi and welcome to the forum!  
If you have a multi-service deployment, it makes sense to use the same service names in each environment, then being able to filter for all services based on the environment. For example, you could view the entire [service map](https://www.elastic.co/guide/en/kibana/current/service-maps.html#service-maps) for each environment.  
I hope this helps.

---

<div class="post-metadata">

**Author:** ![Danny\_Larsen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danny_larsen/32/72800_2.png) [@Danny\_Larsen](https://discuss.elastic.co/u/Danny_Larsen)\
**Post date:** [July 26, 2020, 11:09am UTC](https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643/3 "2020-07-26T11:09:00Z")

</div>

Thanks for the quick response. That sounds reasonable. I think I will use the same names and then the environment feature.

---

<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, 2020, 7:09am UTC](https://discuss.elastic.co/t/service-environment-vs-different-service-name/242643/4 "2020-08-16T07:09:10Z")

</div>

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