日志探索
Log Explorer in CloudLens for Container lets you select metrics, write query and analysis statements, and browse real-time charts of your monitoring data.
Prerequisites
You have connected Alibaba Cloud Container Service for Kubernetes (ACK) to Cloud Monitor 2.0.
Try in Playground
Alibaba Cloud Playground provides a demo environment where you can experience the main features of Cloud Monitor 2.0.
-
Go to the Playground Demo environment. You are automatically logged in to the default workspace.
-
In the left-side navigation pane, click CloudLens for Container. Alternatively, go to All Features and click CloudLens for Container.
-
On the navigation bar of CloudLens for Container, choose .
Procedure
Log on to the Cloud Monitor 2.0 console, and select a workspace. In the left navigation pane, choose .
-
On the navigation bar of CloudLens for Container, choose .
-
On the query and analysis page, view logs on the following component log tabs.
Component log
Description
-
Container standard output
-
Managed APIServer component logs
-
CoreDNS component logs
-
In the search bar, enter a query and analysis statement, and then click Search & Analyze.
NoteQueries let you view, search, and filter log data by conditions such as time range, request type, or keywords. For more information about the syntax, see Query syntax and features.
-
Log Quantity: Hover over a green data block on the bar chart to view its time range and log count. Double-click a green data block to drill down to a finer time granularity. The query results for the specified time range are displayed on the Original Log tab.

-
Original Log:
-
In the right-side pane, browse the display fields, index fields, and other fields of the logs.
-
In the left-side pane, select Table or Raw Data to switch the log format. Use Wrap to toggle text wrapping. Select Time to sort the logs.
-
-
Graph: Displays visualized results after you run a query and analysis statement. Multiple chart types are available, such as tables, line charts, and bar charts. For more information, see Statistical Charts.
-