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.

Procedure

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