Torch Log Service
Function type | Function name | Description |
Function type | Function name | Description |
If the condition is met, the corresponding operation will be performed. If not, no operation will be performed and the next condition will be checked. | ||
| Perform the corresponding operation based on the outcome of condition evaluation. | |
| If the condition is met, perform the corresponding operation and return the result; if not, skip the operation and proceed to the next condition check. | |
| Used to combine multiple operations. All operations should be global operation functions. | |
Check whether the specified log field value matches the regular expression. | ||
| Check whether the log contains content that matches the query statement. | |
Export logs to the specified log topic. | ||
| Dynamically distribute logs to different log topics. | |
| Split logs into multiple entries based on log field values. | |
| Delete logs based on specified conditions. | |
| Determine whether to keep logs based on conditions. | |
Retrieve the value of a specified field in the log. If multiple field names are provided, return the value of the first existing field in the log. | ||
| Delete the specified field. | |
| Keep the specified field and delete all other fields. | |
| Rename the specified field. | |
| Add a new field or update the value of an existing field. | |
Determine whether the specified field exists. | ||
| Determine whether the specified field does not exist. | |
Extract field values based on a single separator. | ||
| Extract field values based on a separator string. | |
| Expand JSON strings in the specified field. | |
| Extract field values using jmes expressions. | |
| Extract field values using two levels of separators. | |
| Extract the value of the specified field using the designated regular expression and assign the value to other fields. | |
| Extract specific values using regular expressions. | |
Use this for mapping table data. | ||
| Map data with the specified dictionary, converting input fields to a new field based on the mapping rules. |
Function type | Function name | Description |
Function type | Function name | Description |
Convert the value of a time expression (such as a timestamp or string) to a string. | ||
| Convert the field value of a time type to a UTC timestamp based on the specified time zone. | |
| Convert timestamp fields of time types to a time string in the specified time zone. | |
| Get the local time during data transformation calculation. | |
Join multiple strings using a separator. | ||
| Calculate the length of a string. | |
| String replacement. | |
| String formatting. | |
Convert integer value base. Supports specifying the original base from 2 to 36; the default base is decimal. The result is returned as a decimal value. | ||
| Convert the original type to a floating-point number. | |
| Convert the original type to a string. | |
| Convert the original type to a bool type. | |
If the condition is true, return the value of the first expression; if false, return the value of the second expression. | ||
| Operation: logical AND. | |
| Operation: logical OR. | |
| Operation: logical NOT. | |
| Operation: logical equality; supports strings and numbers. | |
| Operation: greater than or equal to. | |
| Operation: greater than. | |
| Operation: less than or equal to. | |
| Operation: less than. | |
Operation: accumulation. | ||
| Operation: subtraction. | |
| Operation: multiplication. | |
| Operation: division. | |
| Operation: addition. | |
| Operation: perform modulo. | |
| Checks for null value; returns true if the value is null; otherwise returns false. | |
Matches and replaces strings using regular expressions. | ||
Builds a dictionary. | ||
| Update the values in one dictionary with another dictionary. | |
Perform MD5 encoding on the specified field, i.e., calculate the MD5 value of the string. | ||
| Encode the specified data with Base64, i.e., calculate the Base64 encoded value of the string. | |
| Decode data using Base64. | |
| Encode the string according to the specified encoding format. | |
| Decode the string according to the specified encoding format. | |
Parse the location information, including geographic position and administrative divisions, based on the IP address. | ||
Parse device information from the User-Agent. | ||
| Parse operation system information from the User-Agent. | |
| Parse browser information from the User-Agent string. | |
Determine whether the string is in standard JSON format. | ||
lst_make | Create a new list. | |
| Add elements to the end of the list. | |
| Delete the element at the specified position in the list. | |
Pull table data from Volcanoengine Cloud Database MySQL and self-hosted public MySQL databases. |