Este contenido no está disponible en el idioma seleccionado.

15.4. Configuring the Log Level


Every log message has a log level associated with it. The levels, in descending order, are CRITICAL, ERROR, WARNING, INFO, DEBUG, and TRACE. Red Hat Storage can be configured to generate log messages only for certain log levels. Only those messages that have log levels above or equal to the configured log level are logged.
For example, if the log level is set to info, only critical, error, warning, and info messages are logged.
The components can be configured to log at one of the following levels:
  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG
  • TRACE

Important

Setting the log level to TRACE or DEBUG would generate excessive log messages and lead to the disks running out of memory.
To configure the log level on bricks
#gluster volume set VOLNAME diagnostics.brick-log-level <value>
Copy to Clipboard Toggle word wrap

Example 15.7. Set the log level to warning on a brick

#gluster volume set testvol diagnostics.brick-log-level WARNING
Copy to Clipboard Toggle word wrap
To configure the syslog level on bricks
#gluster volume set VOLNAME diagnostics.brick-sys-log-level <value>
Copy to Clipboard Toggle word wrap

Example 15.8. Set the syslog level to warning on a brick

#gluster volume set testvol diagnostics.brick-sys-log-level WARNING
Copy to Clipboard Toggle word wrap
To configure the log level on clients
#gluster volume set VOLNAME diagnostics.client-log-level <value>
Copy to Clipboard Toggle word wrap

Example 15.9. Set the log level to error on a client

#gluster volume set testvol diagnostics.client-log-level ERROR
Copy to Clipboard Toggle word wrap
To configure the syslog level on clients
#gluster volume set VOLNAME diagnostics.client-sys-log-level <value>
Copy to Clipboard Toggle word wrap

Example 15.10. Set the syslog level to error on a client

#gluster volume set testvol diagnostics.client-sys-log-level ERROR
Copy to Clipboard Toggle word wrap
To configure the log level on glusterd
#glusterd --log-level <value>
Copy to Clipboard Toggle word wrap

Example 15.11. Set the log level to warning on glusterd

#glusterd --log-level WARNING
Copy to Clipboard Toggle word wrap
To configure the log level for a specific gluster command
gluster --log-level=ERROR VOLNAME peer probe HOSTNAME
Copy to Clipboard Toggle word wrap

Example 15.12. Set the CLI log level to ERROR for the volume statuscommand

# gluster --log-level=ERROR volume status
Copy to Clipboard Toggle word wrap
Verify the log level for a specific gluster command
#gluster --log-level ERROR volume status
Copy to Clipboard Toggle word wrap
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat