Torch Log Service
Type | Function | Scenarios |
Type | Function | Scenarios |
Event check function | Query string can be used to determine whether the field value of a specified event meets the given condition. |
Feature | Key-value query | Full-text query |
Feature | Key-value query | Full-text query |
Keyword search | Supported | Supported |
Fuzzy matching | Supported | Supported |
Exact match | Supported | Not supported |
Regex matching | Supported | Not supported |
Numerical comparison and range evaluation | Supported | Not supported |
Logical relationship evaluation | Supported | Supported |
Field evaluation | Supported | Not supported |
Escape method | Description |
Escape method | Description |
Field name escaping | When a field name contains special characters, use a backslash (\) for escaping. For example, new\*:content and \(path\)\?: api. If the field name is in Chinese, wrap it in double quotation marks, such as e_search('"Chinese field":"Chinese value"'). |
Search values escaping | If the search value contains special characters, use the backslash (\) to escape them. For example, e_search('content:a\*b') uses a backslash to escape the asterisk. |
Query methods | Description |
Query methods | Description |
Full-text query | Search for the specified string in all field values. Add quotation marks ("") when searching for Chinese keywords. The syntax format is as follows: f_search('keyword1') Example:
|
Key-value query | Search for the specified string among all values in a field. The syntax format is as follows: f_search('key:value') Example:
|
Query methods | Description |
Query methods | Description |
Full-text query | Perform fuzzy matching across all fields. The syntax format is as follows: f_search('keyword*') Example:
|
Key-value query | Perform fuzzy matching on field values within the specified fields. The syntax format is as follows: f_search('key:value*') Example:
|
Feature | Description |
Feature | Description |
Value comparison | Compare the value of the specified field with a given number. For example: f_search('count >= 9') # >=9 f_search('count > 9') # > 9 f_search('count = 9') # = 9 f_search('count <= 9') # <=9 f_search('count < 9') # < 9 |
Data range check | Compare the value of the specified field with a given numeric range. The numeric range must be a closed interval. For example: f_search('age: [1, 18]') # >=1 and <=18 |
Logical relationships | Keyword |
Logical relationships | Keyword |
And | AND, &&, and similar options; only uppercase is supported. |
OR | OR, ||, and similar options; only uppercase is supported. |
NOT | NOT, ! and similar options; only uppercase letters are supported. |