Logs Zookeeper
Logs Zookeeper
com/share/6747ef06-579c-8009-8c4f-cd50bdaf5c7d
1. Transaction Logs (Data Logs): These logs store snapshots of the data
and are used for recovery.
2. Application Logs (Operational Logs): These contain information
about the server's operational status, errors, and other events.
1. Transaction Logs:
o Stored in the dataLogDir or dataDir directory, as specified in
Zookeeper's configuration file (zoo.cfg).
o By default:
dataDir=/tmp/zookeeper (default directory for
snapshots and transaction logs).
If dataLogDir is not explicitly specified, transaction logs
will also be stored in dataDir.
2. Application Logs:
properties
Copy code
log4j.appender.ROLLINGFILE.File=/path/to/logfile/
zookeeper.log
Customizing Locations