# Sanitize IP and user name information from .Net Full Framework

**URL:** <https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 28, 2020, 9:09am UTC](https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699 "2020-05-28T09:09:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danbrad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danbrad/32/69269_2.png) [@danbrad](https://discuss.elastic.co/u/danbrad)\
**Post date:** [May 28, 2020, 9:09am UTC](https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699/1 "2020-05-28T09:09:37Z")

</div>

Is it possible to sanitize the following pieces of information? I've added them to the SanitizeFieldNames setting, but they still come over.

```auto
client.ip
http.request.socket.remote_address
user.name

```

Thanks!

---

<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 28, 2020, 9:25am UTC](https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699/2 "2020-05-28T09:25:11Z")

</div>

Hi @danbrad, welcome on discuss!

In the [`SanitizeFieldNames`](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-core.html#config-sanitize-field-names) you can define keys that will be checked when the agent reads HTTP headers or the request body when it's form-urlencoded.

The things you list typically don't come from those sources, that's why those still come over.

What you can do is to use the [Filter API](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html#filter-api) and set those properties to `null`.

---

<div class="post-metadata">

**Author:** ![danbrad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danbrad/32/69269_2.png) [@danbrad](https://discuss.elastic.co/u/danbrad)\
**Post date:** [May 29, 2020, 7:08am UTC](https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699/3 "2020-05-29T07:08:59Z")

</div>

Awesome, thanks!

---

<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 19, 2020, 3:09am UTC](https://discuss.elastic.co/t/sanitize-ip-and-user-name-information-from-net-full-framework/234699/4 "2020-06-19T03:09:04Z")

</div>

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