Setting up Properties

Prerequisites

To enable the data masking and selective logging, make sure that you set the log level to 0 (DEBUG) using the tibco.clientVar.ASG/Logging/MinLogLevel property in the ASG_CONFIG_HOME/asg.properties file.

To configure the payload data masking and selective log policy, you must set the following properties in the ASG_CONFIG_HOME/asg.properties file:
Properties for Data Masking
Property Description
tibco.clientVar.ASG/Logging/enableLogMasking Enables or disables the log policy. The possible values are true and false. The default value is false.
tibco.clientVar.ASG/Files/PayloadMaskConfigFile Specifies the path of log policy XML file. The log policy file must be copied to the ASG_CONFIG_HOME directory.

To enable the log policy for a payload, follow these steps:

Procedure

  1. Navigate to the ASG_CONFIG_HOME directory.
  2. Set the following property to true, as follows:

    tibco.clientVar.ASG/Logging/enableLogMasking=true

  3. Set the following property to set the path to the log policy XML file:

    tibco.clientVar.ASG/Files/PayloadMaskConfigFile

    For example, the path can be set as follows:

    tibco.clientVar.ASG/Files/PayloadMaskConfigFile=ASG_CONFIG_HOME/APIExchange/security/policy/LogPolicyXMLFile.xml

    Note: See Log Policy Configuration File to create a log policy XML file. The log policy XML filename cannot be changed. Otherwise, the policy will not appear in the drop-down list on the Log Policy tab of the Config UI.
  4. Save changes to the asg.properties file.