Log Collection FAQs
Why can’t I view the logs in CLS console after configuring log collection for the cluster?
If the log cannot be viewed or is missing, please check whether the following problems exist:
Check whether you have enabled the index feature for the selected log topic. Index configuration is required for using CLS for log search and analysis. If the index feature is disabled, you cannot view the logs. For more information about index configuration, see Configuring Index. Check whether the log, audit, and event features use the same topic. If they use the same topic, the logs will be overwritten, resulting in log missing.
Check whether the selected topic uses two extraction modes. The new extraction mode will overwrite the legacy one.
Check whether a soft link is used. If "Container File Path" is selected as the collection type, the corresponding path must not be a soft link. Otherwise, the actual path of the soft link will not exist in the container of the collector, resulting in a log collection failure.
If you use environment variables to enable TKE Serverless log collection and select the role-based authorization method, you need to select CVM as the role entity when creating a role. If you Select TKE, the authorization fails.
Where can I view the logs after configuring the log rules?
1. Log in to the CLS console. In the left sidebar, click Search and Analysis. 2. On the Search and Analysis page, select the region, log set, and log topic to view logs, and enable full-text index to search for and analyze logs, as shown below: