Changing logging locations
Logging locations for DataStax Enterprise (DSE) are set at installation.
Generally, the default logs location is /var/log.
For example, /var/log/cassandra and /var/log/tomcat.
For details, see Default file locations for package installations and Default file locations for tarball installations.
You can also change logging locations with OpsCenter Configuration Profiles.
-
Change logging locations after installation:
To generate all logs in the same location, add
CASSANDRA_LOG_DIRto thedse-env.shfile:export CASSANDRA_LOG_DIR="/your/log/location"For finer-grained control, edit the
logback.xmlfile and replace${cassandra.logdir}with the path. -
To change the Tomcat server log locations for DSE Search, edit one of the following files:
-
In the
cassandra-env.shfile, setTOMCAT_LOGS:export TOMCAT_LOGS="/your/log/location" -
Set the locations in
resources/tomcat/conf/logging.properties.
-
-
After you change logging locations, restart DSE.