# How to disable exporting user.email or mask it

**URL:** <https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [July 1, 2020, 5:47pm UTC](https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529 "2020-07-01T17:47:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Shrivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_shrivastava/32/9850_2.png) [@Rohit\_Shrivastava](https://discuss.elastic.co/u/Rohit_Shrivastava)\
**Post date:** [July 1, 2020, 5:47pm UTC](https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529/1 "2020-07-01T17:47:26Z")

</div>

I am using Elastic APM 7.8 with .net core agent. Is there a way to disable certain exported fields?  
I noticed that by default its logs user.email [https://www.elastic.co/guide/en/apm/server/current/exported-fields-apm.html](https://www.elastic.co/guide/en/apm/server/current/exported-fields-apm.html)

How can I suppress this?

---

<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:** [July 1, 2020, 7:06pm UTC](https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529/2 "2020-07-01T19:06:43Z")

</div>

Hi @Rohit_Shrivastava,

the [Filter API](https://www.elastic.co/guide/en/apm/agent/dotnet/current/public-api.html#filter-api) on the agent would be one option.

---

<div class="post-metadata">

**Author:** ![Rohit\_Shrivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohit_shrivastava/32/9850_2.png) [@Rohit\_Shrivastava](https://discuss.elastic.co/u/Rohit_Shrivastava)\
**Post date:** [July 2, 2020, 10:35pm UTC](https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529/3 "2020-07-02T22:35:09Z")

</div>

Thanks @GregKalapos I'll give it a go.

---

<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:** [July 23, 2020, 6:35pm UTC](https://discuss.elastic.co/t/how-to-disable-exporting-user-email-or-mask-it/239529/4 "2020-07-23T18:35:19Z")

</div>

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