Torch Log Service
Name | Type | Required | Description |
Name | Type | Required | Description |
field | String | Yes | Name of the field to be desensitized. Field names must be unique and non-empty, and cannot contain periods (.). |
type | String | Yes | The desensitization method for sensitive log content. Supports setting as the following:
|
extract_type | String | Yes | Method for extracting sensitive log content. Supported settings:
|
when | Object | No | The plugin execution condition. This plugin is executed only when the condition is evaluated as true. For more details, see Plugin execution conditions. |
pattern | String | No | Regular expression for matching sensitive log content. Pattern is required only when extract_type is set to regex. If multiple sensitive log entries in the original field match the regular expression, all of them will be desensitized. |
ignore_missing | Boolean | No | This parameter determines whether to skip fields that do not exist.
|