Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

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

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.