| name | cis-cassandra40-v100-4.1 |
| description | Ensure that logging is enabled |
| category | cis-cassandra |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","cassandra","auditing","logging"] |
| cis_id | 4.1 |
| cis_benchmark | CIS Apache Cassandra 4.0 Benchmark v1.0.0 |
| tech_stack | ["cassandra"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
4.1 Ensure that logging is enabled
Profile Applicability
- Level 1 - Cassandra
- Level 1 - Cassandra on Linux
Description
Apache Cassandra uses Logback for logging functionality. While this can be set using nodetool setlogginglevel changes made using this method will be reverted to the level specified in the logback.xml file the next time the process restarts.
The configurable logging levels are:
- OFF
- TRACE
- DEBUG
- INFO (Default)
- WARN
- ERROR
Rationale
If logging is not enabled, issues may go undiscovered, and compromises and other incidents may occur without being quickly detected. It may also not be possible to provide evidence of compliance with security laws, regulations, and other requirements.
Audit
Execute the following command to confirm the setting is correct:
$ nodetool getlogginglevels
Logger Name Log Level
ROOT INFO
org.cisecurity.workbench WARN
If set to OFF then this is a finding.
Remediation
To remediate this setting:
- Edit the logback-test.xml if present; otherwise, edit the logback.xml
Add or modify the configuration to include at minimum INFO level logging:
<configuration scan="true">
<appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<encoder>
<pattern>%-5level [%thread] %date{ISO8601} %F:%L -
%msg%n