Questo contenuto non è disponibile nella lingua selezionata.
Chapter 1. Logging
1.1. Viewing Argo CD logs
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.
1.1.1. Storing and retrieving Argo CD logs
You can use the Kibana dashboard to store and retrieve Argo CD logs.
Prerequisites
- 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.
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-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.