Skip to content

Overview of data transformation cases

Common log processing

Case nameDescription
Parse NGINX logsUse the data transformation feature to parse NGINX logs.
Check data by using functionsUse the data transformation feature to check log data.

Log distribution

Case nameDescription
Replicate data from a LogstoreUse the data transformation feature to replicate data from a Logstore.
Replicate and distribute dataReplicate data from a source Logstore and distribute the data to multiple destination Logstores in a typical scenario.
Transmit data across regionsUse the data transformation feature to transmit data across regions.
Distribute data to multiple destination LogstoresDistribute data to multiple destination Logstores in various scenarios.
Aggregate data from multiple source LogstoresAggregate data from multiple source Logstores to a destination Logstore.

Data masking

Case nameDescription
Data maskingUse functions to mask sensitive data in various scenarios.

Datetime conversion

Case nameDescription
Datetime conversionUse functions to convert and offset the datetime.

Text parsing

Case nameDescription
Parse Syslog messages in standard formatsUse the Grok function in the domain-specific language (DSL) of Simple Log Service to parse Syslog messages in different formats.
Parse NGINX logsUse regular expression functions or the Grok function to parse NGINX access logs.
Parse Java error logsUse the data transformation feature to parse Java error logs.
Extract dynamic key-value pairs from a stringUse different functions to extract dynamic key-value pairs from a string.
Transform logs in specific text formatsUse LOG DSL orchestration to transform logs to meet data transformation requirements.
Convert logs to metricsUse a data transformation function to convert logs to metrics.
Parse and update JSON dataUse the data transformation feature to parse and update JSON data.
Case nameDescription
Obtain the IPIP library from OSS and enrich IP address dataObtain the IPIP library from Object Storage Service (OSS) and use the library to identify the city, state, and country to which an IP address belongs.
Obtain the IP2Location library from OSS and enrich IP address dataObtain the IP2Location library from OSS and use the library to identify the city, state, and country to which an IP address belongs.
Filter flow logs that record Internet trafficUse the data transformation feature to filter traffic based on a 5-tuple of network traffic.
Cleanse data by using functionsUse functions to cleanse data in various scenarios.

Processing of logs in specific formats

Case nameDescription
Process logs in the JSON formatUse the data transformation feature to transform complex JSON data.
Parse log entries in a CSV-format log fileParse log entries in a CSV-format log file, such as a Syslog file.
Convert logs to metricsUse the data transformation feature to convert logs to metrics.

Configuration of a data transformation job as a RAM user

Case nameDescription
Use a default role to transfer data within the same Alibaba Cloud accountSpecify a default role to transfer log data within the same Alibaba Cloud account.
Use custom roles to transfer data within the same Alibaba Cloud accountUse custom roles to transfer log data within the same Alibaba Cloud account.
Use custom roles to transfer data across different Alibaba Cloud accountsUse custom roles to transfer log data across different Alibaba Cloud accounts.
Use AccessKey pairs to transfer data within the same Alibaba Cloud accountUse AccessKey pairs to transfer log data within the same Alibaba Cloud account.
Use AccessKey pairs to transfer data across different Alibaba Cloud accountsUse AccessKey pairs to transfer log data across different Alibaba Cloud accounts.

Data enrichment

Case nameDescription
Log enrichment practicesLog enrichment practices
Pull data from one Logstore to enrich log data in another LogstoreUse resource functions to pull data from one Logstore to enrich log data in another Logstore.
Pull a CSV file from OSS to enrich dataUse resource functions to pull data from OSS and use mapping functions to map the data fields to data fields in Simple Log Service.
Obtain data from an ApsaraDB RDS for MySQL database over the internal networkObtain data from an ApsaraDB RDS for MySQL database over the internal network.
Build dictionaries and tables for data enrichmentDescribe common methods for building dictionaries and tables and compare the advantages and disadvantages of different building methods.
Obtain data from an ApsaraDB RDS for MySQL database for data enrichmentUse resource functions to obtain data from an ApsaraDB RDS for MySQL database for data enrichment.化
Use a resource function to obtain incremental dataUse the res_rds_mysql function to obtain incremental data.
Enrich log data by using mapping functionsUse the e_dict_map and e_search_dict_map functions to enrich log data.
Pull data from a Hologres database for data enrichmentUse resource functions to pull data from a Hologres database for data enrichment.
Use the e_table_map function to enrich HTTP response status codesUse the e_table_map function to enrich HTTP response status codes.
Filter VPC flow logs for Internet traffic logsUse the data transformation feature to filter flow logs for Internet traffic logs.

other

Case nameDescription
Transform historical dataBest practices for transforming historical data