The log data collected and sent to Google Stackdriver Logging comes from the Apache Zookeeper transaction log files located on each server within the cluster. Below is an example of the data being displayed in Google Stackdriver Logging.
Apache Zookeeper: 3.4.0 - 3.5.5
Follow these steps to set up log collection from Apache Zookeeper.
Locate the local Zookeeper log directory.
The log location is handled by log4j and will commonly be set either in the zookeeper's log4j properties file, or in the start command for zookeeper itself as an environment variable.
Zookeeper log4j.properties location
Commonly available in the zookeeper 'conf' directory.
- Install the BindPlane Log Agent on the host system.
- Login to BindPlane and select the Logs tab.
- Select the Sources tab.
- In the top-right portion of the screen, click on the Add Source Configuration button
- Choose Apache Zookeeper
- Fill out the Zookeeper log path.
Zookeeper Log location
To find your Zookeeper logging location you can check your log4j.properties file in the conf folder.
For more information on logging in Zookeeper, Click here.
Updated over 2 years ago