Updated on 2023-09-11 GMT+08:00

Introduction

This chapter elaborates the following aspects of the practice:

  • Scenario and benefits
  • Preparation
  • Building a program
  • Event source
  • Processing results
  • Extended applications

Scenario

Quickly collect, process, and convert task logs of servers, such as ECSs, through Log Tank Service (LTS).

Obtain log data using an LTS trigger created on FunctionGraph, analyze and process key information in the logs by using a customized function, and then transfer the filtered logs to another log stream. Figure 1 shows this process.
Figure 1 Processing workflow

Benefits

  • Quickly collect and convert logs with LTS.
  • Process and analyze data by using the event triggering and auto scaling features of serverless function computing. No O&M is involved, and resources are pay-per-use.
  • Transfer filtered logs to another log stream. The original log stream is automatically deleted at the expiration time you set, reducing log storage costs.