Search

Chapter 1. Logging

download PDF

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

  1. In the OpenShift Container Platform web console, go to the red hat applications menu icon menu Observability Logging to view the Kibana dashboard.
  2. Create an index pattern.

    1. To display all the indices, define the index pattern as *, and click Next step.
    2. Select @timestamp for Time Filter field name.
    3. Click Create index pattern.
  3. In the navigation panel of the Kibana dashboard, click the Discover tab.
  4. 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:

    1. Click Add a filter +.
    2. Select the kubernetes.namespace_name field.
    3. Select the is operator.
    4. Select the openshift-gitops value.
    5. Click Save.
  5. 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.
  6. View the filtered Argo CD logs in the Kibana dashboard.

1.1.2. Additional resources

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.