tencent cloud

Serverless Cloud Function

Release Notes and Announcements
Release Notes
Announcements
User Guide
Product Introduction
Overview
Related Concepts
How It Works
Strengths
Scenarios
Related Products
Purchase Guide
Billing Overview
Billing Mode
Billable Items and Billing Modes
Function Computing Power Support
Free Tier
SCF Pricing
Billing Example
Payment Overdue
Getting Started
Creating Event Function in Console
User Guide
Quota Management
Managing Functions
Web Function Management
Log Management
Concurrence Management
Trigger Management
Function URL
A Custom Domain Name
Version Management
Alias Management
Permission Management
Running Instance Management
Plugin Management
Managing Monitors and Alarms
Network Configuration
Layer Management
Execution Configuration
Extended Storage Management
DNS Caching Configuration
Resource Managed Mode Management
Near-Offline Resource Hosting Model
Workflow
Triggers
Trigger Overview
Trigger Event Message Structure Summary
API Gateway Trigger
COS Trigger
CLS Trigger
Timer Trigger
CKafka Trigger
Apache Kafka Trigger
MQTT Trigger
Trigger Configuration Description
MPS Trigger
CLB Trigger Description
TencentCloud API Trigger
Development Guide
Basic Concepts
Testing a Function
Environment Variables
Dependency Installation
Using Container Image
Error Types and Retry Policies
Dead Letter Queue
Connecting SCF to Database
Automated Deployment
Cloud Function Status Code
Common Errors and Solutions
Developer Tools
Serverless Web IDE
Calling SDK Across Functions
Third-Party Tools
Code Development
Python
Node.js
Golang
PHP
Java
Custom Runtime
Deploying Image as Function
Web Framework Development
Deploying Framework on Command Line
Quickly Deploying Egg Framework
Quickly Deploying Express Framework
Quickly Deploying Flask Framework
Quickly Deploying Koa Framework
Quickly Deploying Laravel Framework
Quickly Deploying Nest.js Framework
Quickly Deploying Next.js Framework
Quickly Deploying Nuxt.js Framework
Quickly Deploying Django Framework
Use Cases
Overview
Solutions with Tencent Cloud Services
Business Development
TRTC Practices
COS Practices
CKafka Practice
CLS
CLB Practice
MPS
CDN
CDWPG
VOD
SMS
ES
Scheduled Task
Video Processing
Success Stories
Tencent Online Education
Online Video Industry
Tencent Online Education
Best Practice of Tencent IEG Going Global
API Documentation
History
Introduction
API Category
Making API Requests
Other APIs
Namespace APIs
Layer Management APIs
Async Event Management APIs
Trigger APIs
Function APIs
Function and Layer Status Description
Data Types
Error Codes
SDK Documentation
FAQs
General
Web Function
Billing FAQs
Network FAQs
Log FAQs
SCF utility class
Event Handling FAQs
API Gateway Trigger FAQs
Related Agreement
Service Level Agreement
Contact Us
Glossary

Collecting Event Logs

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-12-15 10:54:58

Scenarios

Kubernetes Events include the operation of Kubernetes clusters and the scheduling status of various resources, which is helpful for Ops personnel to monitor resource changes and troubleshoot issues. After the event persistence feature is enabled, related events can be exported in real time to the configured storage through Cloud Log Service (CLS).

Operation Steps

1. Log in to the Serverless Cloud Function (SCF) console. In the left sidebar, choose Data Engineering > Workflow.
2. On the Workflow page, click the service name to go to the workflow details page.
3. Select Log Management, and then click Enable on the right of the event log.
4. In the Enable Event Logs dialog box, select the log region and configure the log topic, as shown in the following figure:

Log Region: CLS supports cross-region log shipping. Select the target region for log shipping from the drop-down list.
Logset: Based on the selected region, the system displays logsets you have created. If no existing logset is suitable, you can create a new one in the CLS console. For more information, see Creating a Logset.
Log Topic: Select the log topic under the selected logset. Automatically Create a Log Topic and Select an Existing Log Topic modes are supported.
5. Click Confirm to enable event logs.

Event Log Index Description

After you enable event logs, the following indexes are automatically written (and will override existing ones) under the selected topic. It is recommended to create a log topic to avoid sharing it with other online businesses.
Dictionary Name
Field Type
Delimiter
Chinese Characters Allowed
Enable Statistics
(When Enabled, Statistical Analysis can be Performed on Field Values)
clusterId
text
None
None
Enabled
timestamp
text
None
None
Enabled
event.type
text
None
None
Enabled
event.reason
text
None
None
Enabled
event.message
text
@&()='",;:<>[]{}/ \\n\\t\\r
None
Enabled
event.count
long
None
None
Enabled
event.source.component
text
None
None
Enabled
event.source.host
text
None
None
Enabled
event.involvedObject.kind
text
None
None
Enabled
event.involvedObject.namespace
text
None
None
Enabled
event.involvedObject.name
text
None
None
Enabled
event.involvedObject.fieldPath
text
.{}
None
Disabled
event.involvedObject.uid
text
None
None
Disabled
event.firstTimestamp
text
None
None
Enabled
event.lastTimestamp
text
None
None
Enabled

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック