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.

  1. Edit the Apache Agent configuration file:
    CODE
    <path_to_webserver_dir>/conf/appdynamics_agent.conf
  2. Add sensitive cookie filter element as directives:
    • AppDynamicsMaskCookieON
    • AppDynamicsCookieMatchPatternpattern
      • AppDynamicsMaskCookie: Specify if filtering is enabled or not. Set it ON for cookie filtering to be enabled. Default value is OFF.
      • AppDynamicsCookieMatchPattern: Specify the pattern that when matched, filters value of that cookie.
  3. Enabling AppDynamicsMaskCookie masks values of all the cookies associated with the given request.
    To filter selective cookies, set the following:
    • Add AppDynamicsCookieMatchPattern and provide the full name of the cookie whose value needs to be masked as AppDynamicsCookieMatchPattern<pattern>.
    For example:
    CODE
    AppDynamicsCookieMatchPattern PHPSESSID

    A 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|cookiekey

      For example:

      CODE
      AppDynamicsCookieMatchPattern PHPSESSID|X-CSRF-TOKEN|cookiekey

      If ‘|’ is present in the cookie name itself, the agent cannot mask those cookies as ‘|’ is used as a name separator in AppDynamicsCookieMatchPattern directive.