tencent cloud

문서Cloud Log Service

Index Configuration

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 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.


도움말 및 지원

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

피드백