Change logging locations

Logging locations are set during installation. Generally, the default logs location is /var/log. For example, /var/log/cassandra and /var/log/tomcat.

Change logging locations after installation

  1. To change logging locations after installation:

    • To generate all logs in the same location, add CASSANDRA_LOG_DIR to the hcd-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.

  2. After you change logging locations, restart HCD.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2025 DataStax | Privacy policy | Terms of use | Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com