Changing logging locations
Changing logging locations after installation.
Logging locations are set at installation. Generally, the default logs location is /var/log. For example, /var/log/cassandra and /var/log/tomcat.
For details, see and .
dse-env.sh
The default location of the dse-env.sh file depends on the type of installation:Package installations | /etc/dse/dse-env.sh |
Tarball installations | installation_location/bin/dse-env.sh |
cassandra-env.sh
The location of the cassandra-env.sh file depends on the type of installation:Package installations | /etc/dse/cassandra/cassandra-env.sh |
Tarball installations | installation_location/resources/cassandra/conf/cassandra-env.sh |
logback.xml
The location of the logback.xml file depends on the type of installation:Package installations | /etc/dse/cassandra/logback.xml |
Tarball installations | installation_location/resources/cassandra/conf/logback.xml |
Procedure
- Optional:
To change logging locations after installation:
- To generate all logs in the same location, add CASSANDRA_LOG_DIR to the
dse-env.sh
file:
export CASSANDRA_LOG_DIR="/your/log/location"
- For finer-grained control, edit the
logback.xml file and replace
${cassandra.logdir}
with the path.
- To generate all logs in the same location, add CASSANDRA_LOG_DIR to the
dse-env.sh
file:
- Optional:
To change the Tomcat server log locations for DSE Search, edit one of these
files:
- Set TOMCAT_LOGS in the cassandra-env.sh
file:
export TOMCAT_LOGS="/your/log/location"
- Set the locations in resources/tomcat/conf/logging.properties.
- Set TOMCAT_LOGS in the cassandra-env.sh
file:
- After you change logging locations, restart DataStax Enterprise.