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

Index Configuration

PDF
Focus Mode
Font Size
Last updated: 2024-01-20 17:11:57

How do I enable indexing configuration?

Index configuration is a necessary condition for using CLS for log search and analysis; that is, log search and analysis can be performed only after indexing is enabled. It is strongly recommended that you enable indexing.
Directions
1. Log in to the CLS console.
2. Click Log Topic on the left sidebar to enter the log topic list page.
3. Click the target log topic ID/name to enter the log topic management page.
4. Click the Index Configuration tab and click Edit to enter the index configuration page.
5. Toggle on Index Status to enable indexing.
6. You can further enable Full-Text Index or Key-Value Index.
Full-Text Index: Allows you to search for logs by keywords.
Key-Value Index: Allows you to search for logs by fields. Before enabling Key-Value Index, ensure that the log extraction mode in the log collection configuration is the structured mode (that is, logs are parsed into key-value pairs).

How do I enable key-value indexing configuration?

In key-value indexing, a raw log is split into multiple segments based on a field (key:value), and indexes are created based on the segments. You can search for logs based on key-value (key-value search). We strongly recommend you enable key-value indexing to maximize log search efficiency.
Note:
Before enabling key-value indexing, ensure that the log extraction mode in the log collection configuration is the structured mode (that is, logs are parsed into key-value pairs).
Directions
1. Log in to the CLS console.
2. Click Log Topic on the left sidebar to enter the log topic list page.
3. Click the target log topic ID/name to enter the log topic management page.
4. Click the Index Configuration tab and click Edit to enter the index configuration page.
5. Toggle on Key-Value Index to enable key-value indexing.
6. After enabling key-value indexing, you can also click Auto Configure to enable the system to automatically get the latest log collected as a sample and parse the fields in it into key-value indexes. You can perform fine tuning on the basis of automatic configuration to quickly obtain the final index configuration information.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback