nodetool setlogginglevel

Set the log level for a service.

Set the log level for a service.


nodetool <options> setlogginglevel -- <class> <level>
Tarball and Installer No-Services path:
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 Remote JMX agent username.
class The class for changing the level, a fully qualified domain name such as org.apache.cassandra.service.StorageProxy.
level Logging level, for example DEBUG.
-- Separates an option from an argument that could be mistaken for a option.


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 valid values for setting the log level include ALL for logging information at all levels, TRACE through ERROR, and OFF for no logging. TRACE creates the most verbose log, and ERROR, the least.
  • ALL
  • INFO (Default)
  • WARN
  • OFF
Note: When set to TRACE or DEBUG output appears only in the debug.log. When set to INFO the debug.log is disabled.

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
Note: DataStax Enterprise 5.0 and later support extended logging for compaction. This utility must be configured as part of the table configuration. The extended compaction logs are stored in a separate file. For details, see Enabling extended compaction logging.