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 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
You can use the Loki logging component to view aggregated logs for OpenShift Virtualization pods and containers in the web console. This is useful for troubleshooting issues and monitoring your OpenShift Virtualization environment.
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.