Torch Log Service
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Name of the log field to be separated. |
output | String | Yes | / | / | The field names that are extracted and output; separated by commas. |
sep | String | No | , | Single character | Separator |
quote | String | No | " | Single character | The String within this character pair is not split. |
restrict | Boolean | No | False | / | When the number of extracted values does not match the number of target fields entered by the user:
|
mode | String | No | overwrite | overwrite,fill | Processing logic when the specified field does not exist.
|
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Name of the log field to be separated. |
output | String | Yes | / | / | Extracted output field names, separated by commas (,) in English half-width format. |
sep | String | No | , | / | Separator string. |
restrict | Boolean | No | False | / | When the number of extracted values does not match the number of target fields entered by the user:
|
mode | String | No | overwrite | overwrite,fill | Processing logic when the specified field does not exist.
|
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Original field name to be expanded. |
depth | Number | No | 100 | 1-500 | The expanded JSON hierarchy. |
prefix | String | No | No prefix added | / | The prefix for the deepest-level nodes in the expanded JSON string. Only the deepest-level JSON hierarchy needs prefix. |
suffix | String | No | No suffix added | / | The suffix for the deepest node in the expanded JSON string. Suffixes are only added to the deepest JSON level. |
fmt | String | No | simple |
| Formatting method. Supports configuring as the followings:
|
sep | String | No | . | / | The separator used when formatting parent and child nodes. This setting is available only when the fmt parameter is set to full. |
expand_array | Boolean | No | True |
| Expand the array.
|
include_node | String | No | No processing | / | The node names allowed for screening and filtering. The names are matched using regular expressions. By default, only nodes containing Chinese characters, numbers, letters, and _.- will be automatically expand. After setting the allowed node list, only nodes included in the list will be displayed in the results. For example, ext_json("json_data_filed", ...., include_node="k\d+"). |
exclude_node | String | No | No processing | / | The nodes to be excluded during filtering. The nodes are matched using regular expressions. After setting the exclusion list, all content not in the list will be excluded. For example, ext_json("json_data_filed", ...., exclude_node="k\\d+"). |
include_path | String | No | No processing | / | Node paths included during filtering. The paths are matched by regular expressions. The regular expressions for include_path and exclue_path match from the beginning of the path, and the path is separated by a period (.). For example, ext_json("json_data_filed", ...., include_path="content.k\\d+"). |
exclude_path | String | No | No processing | / | The node paths to be excluded during filtering. The paths are matched using regular expressions. The regular expressions for include_path and exclue_path match from the beginning of the path, and the path is separated by a period (.). For example, ext_json("json_data_filed", ...., exclude_path="content.k\\d+"). |
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Name of the original field to be extracted. |
jmes | String | Yes | / | / | JMES expression. |
output | String | Yes | / | / | Extracted output field name. |
ignore_null | Boolean | No | True | / | Determines whether to ignore nodes with null values:
|
mode | String | No | overwrite | overwrite,fill | Processing logic when the specified field does not exist.
|
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Source field name. |
pair_sep | String | No | \s (space) | / | Primary separator. Can be used to separate multiple key-value pairs. |
kv_sep | String | No | = | / | Secondary separator. Can be used to divide keys and values. |
prefix | String | No | / | / | New field prefix |
suffix | String | No | / | / | New field suffix. |
mode | String | No | overwrite |
| Processing logic when the specified field does not exist.
|
Parameters | Parameter type | Required | Default value | Value range | Description |
Parameters | Parameter type | Required | Default value | Value range | Description |
field | String | Yes | / | / | Field name of the value to extract. If the specified field does not exist, no action is taken. |
regex | String | Yes | / | / | Regular expression used to extract the field. Field values that match the regular expression rules will be extracted. |
output | String | No | / | / | The matched field will be output. If the specified field does not exist, no action is taken. If you specify multiple fields, use commas to separate these fields. |
mode | String | No | fill |
| Specify the cover mode for output fields.
|
Parameters | Parameter type | Required | Description |
Parameters | Parameter type | Required | Description |
field | String | Yes | Field name to be extracted. |
grok | String | Yes | GROK expression. |
extend | Dict | No | Customize GROK expressions, where both key and value must be in string format. |