You can view the Argo CD logs with the logging subsystem for Red Hat OpenShift. The logging subsystem visualizes the logs on a Kibana dashboard. The OpenShift Logging Operator enables logging with Argo CD by default.
You can use the Kibana dashboard to store and retrieve Argo CD logs.
The Red Hat OpenShift GitOps Operator is installed on your OpenShift Container Platform cluster.
The logging subsystem for Red Hat OpenShift is installed with default configuration on your OpenShift Container Platform cluster.
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.
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-gitops
namespace:
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_name
as the field.
View the filtered Argo CD logs in the Kibana dashboard.