15.3.4. Log aggregation
To more easily diagnose and troubleshoot issues, you can aggregate and filter your logs.
15.3.4.1. Viewing aggregated OpenShift Virtualization logs with Loki リンクのコピーリンクがクリップボードにコピーされました!
To troubleshoot issues and monitor the health of your virtualization environment, you can view aggregated logs for OpenShift Virtualization pods and containers in the web console. This process requires Loki, a logging component that provides a short-term, horizontally scalable log store and log aggregation. For more information about Loki, see "Additional resources".
Prerequisites
-
You have installed the Loki Operator and deployed the
LokiStackcustom resource (CR).
Procedure
-
Navigate to Observe
Logs in the web console. -
Select application, for
virt-launcherpod logs, or infrastructure, for OpenShift Virtualization control plane pods and containers, from the log type list. - Click Show Query to display the query field.
- Enter the LogQL query in the query field and click Run Query to display the filtered logs.