Chapter 1. Logging
1.1. Viewing Argo CD logs Copy linkLink copied to clipboard!
Viewing Argo CD logs helps you troubleshoot GitOps deployments and monitor application synchronization. Use the logging subsystem for Red Hat OpenShift to access and filter Argo CD controller and application logs through the Kibana dashboard. The logging subsystem for Red Hat OpenShift collects logs from all pods in the cluster, including Red Hat OpenShift GitOps components.
1.1.1. Searching and filtering Argo CD logs Copy linkLink copied to clipboard!
You can use the Kibana dashboard to view, search, and filter Argo CD logs to troubleshoot GitOps deployments and monitor application synchronization.
Prerequisites
- The Red Hat OpenShift GitOps Operator is installed on your OpenShift Container Platform cluster.
- The logging subsystem for Red Hat OpenShift is installed and configured to collect logs on your OpenShift Container Platform cluster.
Procedure
-
In the OpenShift Container Platform web console, go to the
menu Observability Logging to view the Kibana dashboard. Create an index pattern.
-
To display all the indices, define the index pattern as
*, and click Next step. - Select @timestamp for Time Filter field name.
- Click Create index pattern.
-
To display all the indices, define the index pattern as
- In the navigation panel of the Kibana dashboard, click the Discover tab.
Create a filter to retrieve logs for Argo CD. The following steps create a filter that retrieves logs for all the pods in the
openshift-gitopsnamespace:- Click Add a filter +.
- Select the kubernetes.namespace_name field.
- Select the is operator.
- Select the openshift-gitops value.
- Click Save.
-
Optional: Add additional filters to narrow the search. For example, to retrieve logs for a particular pod, you can create another filter with
kubernetes.pod_nameas the field. - View the filtered Argo CD logs in the Kibana dashboard.