Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

naraen.grm_191651 avatar image
naraen.grm_191651 asked Erick Ramirez edited

How do Cassandra logs get rotated and purged periodically?

what are the log purging and rotation policies for Cassandra? How and where they are configured?

I could see debug, system and gc logs being zipped and rotated. Also finally purged after some days.

Just need to identify where these settings are configured. Are they handled by cassandra or we need to define our log4j settings?

logging
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

aploetz avatar image
aploetz answered aploetz edited

By default, Cassandra allows for 20 system.logs and 20 debug.log files. You'll see a new file created once the current log file hits 20MB in size. These defaults can be changed by altering the SYSTEMLOG and DEBUGLOG sections of the logback.xml file.

Check out the docs for more information: Configuring Logging

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.