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
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
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.
Apakah halaman ini membantu?