All Products
Search
Document Center

Demo overview

Last Updated: Oct 16, 2018

Function Compute integrated with Log Service can provide a fully-managed processing service for streaming data.

Introduction

You can configure a Log Service trigger. This trigger regularly obtains updated data and triggers function execution. In this way, Function Compute consumes incremental data from the Logstore in Log Service, and completes custom processing tasks, such as data scrubbing and extract, transform, and load (ETL). Then, Function Compute ships data to a third-party service, as shown in the following figure:

Dataprocessing

The functions used to process data can be templates provided by Log Service or your custom functions.

In this sample, Log Service uses a function from Function Compute to retrieve log files and print them to Function Compute. This example describes how to use the Log Service trigger to integrate Log Service with Function Compute.

Before starting the process that is shown in this example, make sure that you have signed up for Function Compute and Log Service.

Contents

To run a function triggered by the Log Service event source, follow these steps:

  1. Activate Log Service, and create the project and Logstores of Log Service and the Log Service trigger.

  2. Author the function.

  3. Test your function.

References

Developer Guide