Updated on 2023-11-03 GMT+08:00

Data Masking

You can set policies to mask the data reported using APM 2.0.

Querying a Data Masking Configuration

  1. Log in to the management console.
  2. Click on the left and choose Application > Application Performance Management.
  3. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node. The configuration information is displayed.

    Figure 1 Querying a data masking configuration

  4. In the search box, enter a configuration name keyword and click the search icon or press Enter.

    Figure 2 Searching for a configuration

Adding a Data Masking Configuration

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.

    Figure 3 Add a data masking configuration

  2. Click Add and set configuration parameters.

    Figure 4 Adding a configuration
    Table 1 Configuration parameters

    Parameter

    Description

    Configuration Name

    Used to identify a data masking configuration. This parameter cannot be empty. Enter up to 30 characters. Only letters, digits, and special characters are allowed.

    Configuration Description

    Used to describe the data masking configuration. This parameter cannot be empty. Enter up to 1000 characters. Only letters, digits, and special characters are allowed.

    Configuration Items

    • Enter up to 32 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.
    • This parameter is mandatory. The options in the drop-down list are Token (replace the content with a globally unique random character string) and Mask (replace the content with asterisks (*)). You can also perform fuzzy search. Mask is displayed by default.
    • Click the plus sign (+) to add a configuration item, or click the minus sign (–) to delete one.
    • Each configuration can contain up to 20 configuration items.
    • The httpMethod, remoteAddr, exceptionType, content-type, charset, api_address, url, method, requestBody, responseBody, exceptionMsg, cookie, and Cookie fields have special functions in APM traces and do not support making.
    • If you use one of these fields as a key, the system will display a message indicating that an invalid name exists.

  3. Click Yes.

Modifying a Data Masking Configuration

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.
  2. Click Modify in the Operation column to modify the configuration information.

    Figure 5 Going to the modification page

  3. Click Yes.

Deleting Data Masking Configurations

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.
  2. Click Delete in the Operation column. In the displayed dialog box, click Yes to delete the configuration.

    Figure 6 Deleting a data masking configuration

  3. Select multiple data masking configurations and click Delete above the list. In the displayed dialog box, click Yes to delete multiple data masking configurations at a time.

    Figure 7 Deleting configurations in batches