# ASM hide parameter sensitive data in the logs

**URL:** <https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790>\
**Category:** Technical Forums\
**Tags:** asm-advanced-waf, security\
**Created:** [December 13, 2018, 6:27pm UTC](https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790 "2018-12-13T18:27:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@OM](https://community.f5.com/u/OM)\
**Post date:** [December 13, 2018, 6:27pm UTC](https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790/1 "2018-12-13T18:27:45Z")

</div>

hi, I am trying to hide (mask) sensitive data for parameters such as password, social id, etc. I added a parameter in the (Security --\> Application Security --\> Parameters --\> Sensitive Parameters) without success. I also added a parameter in the parameters’ list, no luck. the password is still in clear text in the logs. my os version is 12.3.1, I am using POST requests and the parameters are in the header as follows:

POST /myloginpage HTTP/1.1 Host: [mysite.com](http://mysite.com) Connection: keep-alive Content-Length: 1412 Cache-Control: max-age=0 Origin: [https://mysite.com](https://mysite.com) Upgrade-Insecure-Requests: 1 Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,_/_;q=0.8 Referer: [https://mysite.com](https://mysite.com) Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.9,fr;q=0.8 Cookie : cookie…

NAME\_2\_AJXButtonAction&C2\_\_LOGIN%5B1%5D.ACCESSCODE=myuser&C2\_\_LOGIN%5B1%5D.FORMPASSWORD=mypass

any hint ?

thank you.

om

---

<div class="post-metadata">

**Author:** ![Erik\_Novak](https://avatars.discourse-cdn.com/v4/letter/e/e495f1/32.png) [@Erik\_Novak](https://community.f5.com/u/Erik_Novak)\
**Post date:** [December 14, 2018, 2:17pm UTC](https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790/2 "2018-12-14T14:17:50Z")

</div>

Can you try adding the parameter manually, define it as Global, and then select the option to Mask Value in Logs?

---

<div class="post-metadata">

**Author:** ![stan\_piron](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Post date:** [December 15, 2018, 7:58am UTC](https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790/3 "2018-12-15T07:58:27Z")

</div>

In your Post DATA, the parameter name is

```tcl
C2__LOGIN%5B1%5D.FORMPASSWORD

```

did you try to add this parameter in sensitive parameter, or decoded value:

```tcl
C2__LOGIN[1].FORMPASSWORD

```

---

<div class="post-metadata">

**Author:** ![OM](https://avatars.discourse-cdn.com/v4/letter/o/f475e1/32.png) [@OM](https://community.f5.com/u/OM)\
**Post date:** [December 27, 2018, 9:03pm UTC](https://community.f5.com/t/asm-hide-parameter-sensitive-data-in-the-logs/46790/4 "2018-12-27T21:03:15Z")

</div>

Solved… when using Allowed URLs feature along with parameters sensitive, there is a parameter called “Request Body Handling” within the URLs configuration that has to be set to “Form Data”.

now the password is masked in the logs.

thank you all for your help.
