nodetool setlogginglevel

Set the log level for a service.

Set the log level for a service.


nodetool <options> setlogginglevel -- < class_qualifier > < level >
Table 1. Options
Short Long Description
-h --host Hostname or IP address
-p --port Port number
-pwf --password-file Password file path
-pw --password Password
-u --username User name
-- Separates an option from an argument that could be mistaken for a option.
Other options are:
  • class_qualifier is the logger class qualifier, a fully qualified domain name, such as org.apache.cassandra.service.StorageProxy.
  • level is the logging level, for example DEBUG.


You can use this command to set logging levels for services instead of modifying the logback-text.xml file. The following values are valid for the logger class qualifier:
  • org.apache.cassandra
  • org.apache.cassandra.db
  • org.apache.cassandra.service.StorageProxy
The possible log levels are:
  • ALL
  • INFO
  • WARN
  • OFF

If both class qualifier and level arguments to the command are empty or null, the command resets logging to the initial configuration.


This command sets the StorageProxy service to debug level.

nodetool setlogginglevel org.apache.cassandra.service.StorageProxy DEBUG