# .NET Core - Filter by endpoint

**URL:** <https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 20, 2020, 1:00am UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431 "2020-05-20T01:00:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dekim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dekim/32/68690_2.png) [@dekim](https://discuss.elastic.co/u/dekim)\
**Post date:** [May 20, 2020, 1:00am UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431/1 "2020-05-20T01:00:52Z")

</div>

Hello!

We are currently using .NET Core and Elastic APM on Elastic Cloud.

Our stack is hosted on Kubernetes. As Kubernetes requires a "health check" endpoint, we have a lot of requests to `/api/healthz`.

Is there any way to filter out these HTTP request from the APM?

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [May 20, 2020, 8:33am UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431/2 "2020-05-20T08:33:02Z")

</div>

Hi @dekim,

Yes, you should be able to filter out these requests. The Agent has a Filter API, with that based on the request URL you can filter out specific requests. [Here](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html#filter-api) is the documentation of the API.

---

<div class="post-metadata">

**Author:** ![dekim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dekim/32/68690_2.png) [@dekim](https://discuss.elastic.co/u/dekim)\
**Post date:** [May 20, 2020, 11:39am UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431/3 "2020-05-20T11:39:53Z")

</div>

Awesome! Thanks for the follow up Greg!

By the way, awesome work with the .NET Agent 🙂

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [May 23, 2020, 12:24pm UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431/4 "2020-05-23T12:24:22Z")

</div>

Thanks @dekim,

appreciate the nice words 🙂

---

<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 13, 2020, 8:24am UTC](https://discuss.elastic.co/t/net-core-filter-by-endpoint/233431/5 "2020-06-13T08:24:24Z")

</div>

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