This topic describes all global operation functions that are provided by Simple Log Service. The domain-specific language (DSL) for Simple Log Service provides approximately 30 global processing functions. You can use the functions to control the logic of data transformation.
The following table describes the global processing functions.
Category | Function | Description |
| Performs an operation if a specified condition is met. You can specify multiple condition-operation pairs. | |
| Performs an operation based on the evaluation result of a specified condition. | |
| Performs an operation if a specified condition is met and returns the result. | |
| Combines multiple operations and performs the operations in sequence. | |
| Discards a log if a specified condition is met. | |
| Retains a log if a specified condition is met. | |
| Splits a log into multiple logs based on the value of a specified field. You can also use JMESPath to extract the value of the field, and then split the log. | |
| Writes a log to a specified Logstore. The subsequent transformation rules are not executed for the log. | |
| Writes a log to a specified Logstore. The subsequent transformation rules are still executed for the log. | |
| Converts logs to metrics that can be stored in a Metricstore. | |
| Extracts the value of a field from a log. | |
| Adds a field or specifies a new value for an existing field. | |
| Discards the log fields that meet a specified condition. | |
| Retains the log fields that meet a specified condition. | |
| Packs log fields and assigns the log fields as a value to a new field. | |
| Renames the log fields that meet a specified condition. | |
| Extracts the value of a field by using a regular expression and assigns the value to other fields. | |
| Performs operations on JSON objects in a specified field. You can configure the parameters to expand JSON data, extract JSON data by using JMESPath, or expand the extracted JSON data. | |
| Extracts key-value pairs from multiple input fields by using a specified quote. | |
| Extracts key-value pairs from input fields by using a specified delimiter. | |
| Extracts multiple fields by using a default delimiter. The default delimiter is a comma (,). | |
| Extracts multiple fields by using a default delimiter. The default delimiter is a tab ( | |
| Extracts multiple fields by using a default delimiter. The default delimiter is a vertical bar (|). | |
| Calculates the values of the facility and severity fields and returns level information, which is indicated by the facilitylabel field. The function calculates the values based on the value of the priority field and the specified syslog protocol. | |
| Extracts strings by using the rules specified by anchor_rules. | |
| Maps the value of an input field to a value in a specified data dictionary and returns a new field. | |
| Maps the value of an input field to a row in a specified table and returns a new field. | |
| Enriches a raw log by using a data table in Tablestore as the dimension table. | |
| Enriches a raw log by using a data table in ApsaraDB for Redis as the dimension table. |