Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

How do I mask a secret/confidential string in an exception message?

Suppose your application is throwing an exception that contains some confidential or secret data exposed in the exception message and you don't want to display that information on the Controller.


You could add a block like below in <AgentHomeDir>/ver.x.x.x/conf/app-agent-config.xml


      <sensitive-message-filter message-type="throwable"
             match-pattern="<Exception Message Static Text>"
             redaction-regex="<Regular Expression>"/>


Suppose there is an exception thrown like the one below:


If you don't want to expose the actual account number on the Controller, use below block:


      <sensitive-message-filter message-type="throwable"


Agent restart is required for the changes to take effect. After the changes and restart, this is what it should look like on the Controller:



 Attached a sample app-agent-config.xml

Version history
Last update:
‎09-14-2018 11:24 AM
Updated by:
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos

By default what type of data is sent to SaaS controller?

Hi Pooja,

Errors/Exceptions, URL's, Data collectors, MBeans, etc would be sent to
controller from the agent.