# Filter out APM service.name from ML Job

**URL:** <https://discuss.elastic.co/t/filter-out-apm-service-name-from-ml-job/352215>\
**Category:** Elastic Observability\
**Tags:** elastic-stack-machine-learning\
**Created:** [January 31, 2024, 5:16pm UTC](https://discuss.elastic.co/t/filter-out-apm-service-name-from-ml-job/352215 "2024-01-31T17:16:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethranes](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@ethranes](https://discuss.elastic.co/u/ethranes)\
**Post date:** [January 31, 2024, 5:16pm UTC](https://discuss.elastic.co/t/filter-out-apm-service-name-from-ml-job/352215/1 "2024-01-31T17:16:18Z")

</div>

Hi. From my APM page, I have setup a high transaction duration ML job. I am only able to base it from the service.environment. The issue with this is that one service, in the environment is red a lot, and we don't really care. Is there any way that I can filter out this one service.name so it stops triggering my alerting rule?

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [January 31, 2024, 5:35pm UTC](https://discuss.elastic.co/t/filter-out-apm-service-name-from-ml-job/352215/2 "2024-01-31T17:35:27Z")

</div>

> [@ethranes](#):
>
> Hi. From my APM page, I have setup a high transaction duration ML job. I am only able to base it from the service.environment. The issue with this is that one service, in the environment is red a lot, and we don't really care. Is there any way that I can filter out this one service.name so it stops triggering my alerting rule?

Hi,

you can try to filter it. When you create the job, you can add a filter to the `service.name` field to exclude the service you're not interested in.

Regards
