Chapter 13. Monitoring Data Grid Logs


Set logging categories to different message levels to monitor, debug, and troubleshoot Data Grid clusters.

13.1. Configuring Data Grid Logging

Procedure

  1. Specify logging configuration with spec.logging in your Infinispan CR and then apply the changes.

    spec:
      ...
      logging: 1
        categories: 2
          org.infinispan: debug 3
          org.jgroups: debug
    1
    Configures Data Grid logging.
    2
    Adds logging categories.
    3
    Names logging categories and levels.
    Note

    The root logging category is org.infinispan and is INFO by default.

  2. Retrieve logs from Data Grid nodes as required.

    $ oc logs -f $POD_NAME

13.2. Log Levels

Log levels indicate the nature and severity of messages.

Log levelDescription

trace

Provides detailed information about running state of applications. This is the most verbose log level.

debug

Indicates the progress of individual requests or activities.

info

Indicates overall progress of applications, including lifecycle events.

warn

Indicates circumstances that can lead to error or degrade performance.

error

Indicates error conditions that might prevent operations or activities from being successful but do not prevent applications from running.

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.