# APM service name

**URL:** <https://discuss.elastic.co/t/apm-service-name/162978>\
**Category:** APM\
**Created:** [January 4, 2019, 3:17pm UTC](https://discuss.elastic.co/t/apm-service-name/162978 "2019-01-04T15:17:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yasin](https://discuss.elastic.co/u/yasin)\
**Post date:** [January 4, 2019, 3:17pm UTC](https://discuss.elastic.co/t/apm-service-name/162978/1 "2019-01-04T15:17:45Z")

</div>

Dear Elastic team,

We have managed to get the APM data but we have another problem.  
We want name the services so we can have a view from which env it is. Is that possible  
Attached screenshot to be more clear.

 ![02](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88bb90c334e40c6b4925537eee9bfc4b5644db09.png)

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [January 4, 2019, 4:52pm UTC](https://discuss.elastic.co/t/apm-service-name/162978/2 "2019-01-04T16:52:40Z")

</div>

hi @yasin

you can set needed service name with environment info, [config](https://www.elastic.co/guide/en/apm/agent/java/current/configuration.html) .  
For example, MIDOFFICE-dev, MIDOFFICE-test, MIDOFFICE-prod.

---

<div class="post-metadata">

**Author:** ![wa7son](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wa7son/32/21259_2.png) [@wa7son](https://discuss.elastic.co/u/wa7son)\
**Post date:** [January 7, 2019, 12:51pm UTC](https://discuss.elastic.co/t/apm-service-name/162978/3 "2019-01-07T12:51:15Z")

</div>

Hi @yasin

Yes, as @nugusbayevkk correctly pointed out, we recommend that you add the environment as a suffix to your service-name.

It doesn't say in your question if you already use the new [`environment`](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-environment) config option, but as it's stated in its documentation, it's not fully supported in the UI yet.

As an alternative to adding the suffix, you could also use the query bar above to filter for the environment you want to see. But I personally suggest using the suffix as it's less work 😃

---

<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:** [January 28, 2019, 8:51am UTC](https://discuss.elastic.co/t/apm-service-name/162978/4 "2019-01-28T08:51:17Z")

</div>

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