Add Sensitive Data Filter for Cookies
You can use sensitive Cookie filters to configure the agent to obfuscate sensitive information from the URLs in transaction snapshot details.
- Edit the Apache Agent configuration file:
CODE
<path_to_webserver_dir>/conf/appdynamics_agent.conf - Add sensitive cookie filter element as directives:
AppDynamicsMaskCookieONAppDynamicsCookieMatchPatternpatternAppDynamicsMaskCookie: Specify if filtering is enabled or not. Set itONfor cookie filtering to be enabled. Default value isOFF.AppDynamicsCookieMatchPattern: Specify the pattern that when matched, filters value of that cookie.
- Enabling AppDynamicsMaskCookie masks values of all the cookies associated with the given request.
To filter selective cookies, set the following:
- Add
AppDynamicsCookieMatchPatternand provide the full name of the cookie whose value needs to be masked asAppDynamicsCookieMatchPattern<pattern>.
For example:CODEAppDynamicsCookieMatchPattern PHPSESSIDA substring of a cookie name does not mask any value in the transaction snapshot. Ensure that you enter the Full name of the cookie for this directive.
- For masking multiple cookies values simultaneously, provide names of all those cookies separated by '|' as a single string:
CODE
AppDynamicsCookieMatchPattern PHPSESSID|X-CSRF-TOKEN|cookiekeyFor example:
CODEAppDynamicsCookieMatchPattern PHPSESSID|X-CSRF-TOKEN|cookiekeyIf ‘|’ is present in the cookie name itself, the agent cannot mask those cookies as ‘|’ is used as a name separator in
AppDynamicsCookieMatchPatterndirective.
- Add