tencent cloud

Cloud Log Service

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Features
Available Regions
Limits
Concepts
Service Regions and Service Providers
Purchase Guide
Billing Overview
Product Pricing
Pay-as-You-Go
Billing
Cleaning up CLS resources
Cost Optimization
FAQs
Getting Started
Getting Started in 1 Minute
Getting Started Guide
Quickly Trying out CLS with Demo
Operation Guide
Resource Management
Permission Management
Log Collection
Metric Collection
Log Storage
Metric Storage
Search and Analysis (Log Topic)
Search and Analysis (Metric Topic)
Dashboard
Data Processing documents
Shipping and Consumption
Monitoring Alarm
Cloud Insight
Independent DataSight console
Historical Documentation
Practical Tutorial
Log Collection
Search and Analysis
Dashboard
Monitoring Alarm
Shipping and Consumption
Cost Optimization
Developer Guide
Embedding CLS Console
CLS Connection to Grafana
API Documentation
History
Introduction
API Category
Making API Requests
Topic Management APIs
Log Set Management APIs
Index APIs
Topic Partition APIs
Machine Group APIs
Collection Configuration APIs
Log APIs
Metric APIs
Alarm Policy APIs
Data Processing APIs
Kafka Protocol Consumption APIs
CKafka Shipping Task APIs
Kafka Data Subscription APIs
COS Shipping Task APIs
SCF Delivery Task APIs
Scheduled SQL Analysis APIs
COS Data Import Task APIs
Data Types
Error Codes
FAQs
Health Check
Collection
Log Search
Others
CLS Service Level Agreement
CLS Policy
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

SCF

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-01-20 17:44:35

Overview

You can use SCF to process CLS logs. SCF and CLS are independent of each other and are connected via triggers.

Prerequisites

You have logged in to the CLS console.

Directions

Creating a log topic

Create two log topics as instructed in Managing Log Topic.
Note:
As both the source and destination of data ETL are CLS, you need to create at least two topics.

Creating an SCF function

Create a function as instructed in Creating and Testing Function. The main parameters are as follows:
Region: Select Beijing region.
Function name: Enter "CLSdemo".
Creation method: Click Template and select the CLSLogETL template.
Note:
You should select the VPC and subnet of CLS for the created function on the Function Configuration page.

Configuring a CLS trigger

1. Log in to the CLS console.
2. On the left sidebar, click Log Topic to go to the log topic management page.
3. Find the log topic you just created and click its ID/name to enter the log topic details page.
4. On the log topic details page, select the Function Processing tab and click Create.
5. In the Function Processing pop-up window, add the created function and click OK.
The main parameter information is as follows. Use the default values for the remaining configuration items.
Namespace: Select the function namespace.
Function Name: Select the function created in the Creating SCF function step.
Alias: Select a function alias.
Maximum waiting time: Configure the longest waiting time for a single event pull. Default value: 60s.

Testing the function

1. Download the log file in the test sample, extract demo-scf1.txt, and import it to the source CLS service.
2. Switch to the SCF console to view the execution result. On the function details page, select the Log Query tab to view the printed log information.
3. Switch to the target CLS service to view the data processing result.
Note:
You can write specific data processing methods as needed.


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백