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.

logback.xml

  • The logback.xml file is located in the installation_location/conf directory.

cassandra-env.sh

  • The cassandra-env.sh file is located in the installation_location/conf directory.

dse-env.sh

The default location of the dse-env.sh file depends on the type of installation:

Package installations
Installer-Services installations

/etc/dse/dse-env.sh

Tarball installations
Installer-No Services installations

installation_location/bin/dse-env.sh

Procedure

  1. Optional: To change logging locations after installation, edit the logback.xml file and replace ${cassandra.logdir} with the path.
  2. After you change logging locations, restart DataStax Distribution of Apache Cassandra™ (DDAC).