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.
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 cassandra-env.sh file is located in the installation_location/conf directory.
logback.xml
- The logback.xml file is located in the installation_location/conf directory.
Procedure
- Optional:
To change logging locations after installation, edit the
logback.xml file and replace
${cassandra.logdir}
with the path. - After you change logging locations, restart DataStax Distribution of Apache Cassandra™ (DDAC).