# \[REDACTED\] Is the marked field blocked by apm

**URL:** <https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931>\
**Category:** APM\
**Tags:** server\
**Created:** [February 2, 2021, 6:59am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931 "2021-02-02T06:59:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 2, 2021, 6:59am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/1 "2021-02-02T06:59:08Z")

</div>

I found that some trace data is marked [redacted], but I need them to be displayed. What should I do?

I found these

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8bbbb0c3ffc31fee07efabf70c619bbb9d12471.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f727d251d230f20129ac618a0440853bba094b65.png)

 ![微信截图_20210202150119](https://us1.discourse-cdn.com/elastic/original/3X/1/7/177eab44972d17cc3314845ca561d719385de7e9.png)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 2, 2021, 7:07am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/2 "2021-02-02T07:07:33Z")

</div>

Hi @wajika

You didn't specify the agent but there are settings to control that for example [here](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-sanitize-field-names) for the Java agent

Please be careful 🙂

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [February 2, 2021, 7:13am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/3 "2021-02-02T07:13:24Z")

</div>

What @stephenb says for the header (including the "be careful" part) and [`capture_body`](https://www.elastic.co/guide/en/apm/agent/java/current/config-core.html#config-capture-body) for the body.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 2, 2021, 8:58am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/4 "2021-02-02T08:58:17Z")

</div>

I use .Net agent  
Is there any way to turn off sanitize\_ FIELD?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 2, 2021, 3:06pm UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/5 "2021-02-02T15:06:51Z")

</div>

Are you aware that we have very good docs on these settings see [here](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-core.html#config-sanitize-field-names) if you are going to use the agent perhaps it is worth a look.

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 3, 2021, 12:55am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/6 "2021-02-03T00:55:03Z")

</div>

After your first reply, I read the document. I guess if "ELASTIC\_APM\_SANITIZE\_FIELD\_NAMES= password" is set, will authorization (including others) be displayed.

Thank you for your reply again.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [February 3, 2021, 1:37am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/7 "2021-02-03T01:37:34Z")

</div>

If I understand your question correctly, yes if you only set `ELASTIC_APM_SANITIZE_FIELD_NAMES=password` Only `password` will be sanitized. Give it a try and let us know!

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [February 3, 2021, 1:40am UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/8 "2021-02-03T01:40:26Z")

</div>

OK，thank you.

---

<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:** [February 23, 2021, 9:41pm UTC](https://discuss.elastic.co/t/redacted-is-the-marked-field-blocked-by-apm/262931/9 "2021-02-23T21:41:00Z")

</div>

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