Apache Zookeeper
Logs Collected
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.
Supported Versions
Apache Zookeeper: 3.4.0 - 3.5.5
Log Collection Setup
Follow these steps to set up log collection from Apache Zookeeper.
Pre-requisites
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.
Configure a Apache Zookeeper Source
- 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 4 years ago