Use the Container Log Query Tool
This section introduces how to query container logs.
Container logs: Logs obtained from the container’s standard output. The content of container logs is determined by the application running in the container.
Prerequisites
You should have resource viewing permissions for the platform, cluster, workspace, or project to view logs within a specific scope.
WhizardTelemetry Logging should have been installed and enabled.
Steps
Log in to the KubeSphere web console with a user who has the resource viewing permissions.
Hover the cursor over at the bottom right of the page, then select Container Log Search from the menu.
In the pop-up dialog, set the search conditions to query logs.
If there are multiple clusters, click the Cluster dropdown list to query logs in a specific cluster.
Click the search box, set the search conditions, then press Enter to view logs that meet specific conditions. You can set multiple search conditions at the same time.
On the query results page, you can view the time distribution chart of the logs. Click the histogram to switch to the log list for that time period. Click / to start/stop real-time data refresh, click the Log Export dropdown list to select ascending or descending order to export container logs, click the Refresh Rate time to select the data refresh frequency.
Click in the upper right corner of the query results list to customize the information displayed in the list.
Click on a log entry in the query results to view the detailed information of the log.
Query Calico Logs
The "WhizardTelemetry Logging" extension collects Calico logs by default, including information about the allocation and release of Calico pod IPs. You can set query conditions to query Calico logs.
Hover the cursor over the icon at the bottom right of the page, then select Container Log Search from the menu.
In the pop-up dialog, set the search conditions to query Calico logs.
namespace:
kube-system
pod:
<node name>
container:
calico-cni
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.