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.

1872

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.
284

Logs Tab

  1. Select the Sources tab.
249

Sources Tab

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

Add Source Configuration Button

  1. Choose Apache Zookeeper
  2. Fill out the Zookeeper log path.
984

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.