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.

Apache Zookeeper Logs ExampleApache Zookeeper Logs Example

Apache Zookeeper Logs Example

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

  1. Install the BindPlane Log Agent on the host system.
  2. Login to BindPlane and select the Logs tab.
Logs TabLogs Tab

Logs Tab

  1. Select the Sources tab.
Sources TabSources Tab

Sources Tab

  1. In the top-right portion of the screen, click on the Add Source Configuration button
Add Source Configuration ButtonAdd Source Configuration Button

Add Source Configuration Button

  1. Choose Apache Zookeeper
  2. Fill out the Zookeeper log path.
Apache Zookeeper Log Configuration FormApache Zookeeper Log Configuration Form

Apache Zookeeper Log Configuration Form

📘

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.