Help Zookeeper Logs

Zookeeper Logs

Zookeeper is one of the most commonly used distributed open source coordination software. With Site24x7 AppLogs you can get critical insights on your Zookeeper server related logs with the help of a seamless client-level integration with your server. Site24x7 AppLogs is a one of a kind cloud-based service for log management that aggregates logs across all your servers and presents it in a single dashboard view. It enables you to access crucial application information from your logs by searching for message, source file name, date & time and more, thereby making log management hassle free and efficient. Learn more about log management with Site24x7.

Getting started 

  1. Log in to your Site24x7 account.
  2. Download and install the Site24x7 Server Monitoring agent (Windows | Linux). 
  3. Go to Admin > AppLogs > Log Profile and Add Log Profile.

Logs file path

Each application writes logs in different folders and files. By default, Zookeeper logs are sourced from the below-mentioned folder path for the respective Operating System. If you have logs in a different folder, you can mention it under the File Path to source them from that particular folder while creating a log profile.

Linux icon
:
/var/log/zookeeper/zookeeper*.log
 
 
/var/log/zookeeper*.log
Windows icon
:
C:\zookeeper*\logs\zookeeper*.log
 
 
\Program Files\zookeeper*\logs\zookeeper*.log*

Log pattern

$DateTime:date$] $LogLevel$ $Message$ ($SourceFileName$)

This is the default pattern defined by Site24x7 for parsing Zookeeper logs based on the sample mentioned below.

Sample log

2017-03-07 09:05:20,049 - INFO  [SessionTracker:ZooKeeperServer@355] - Expiring session 0x15aa1b716590000, timeout of 6000ms exceeded

The above sample log can be separated into 4 fields, each of which will take its respective value from here and will then be uploaded to Site24x7.

Field name Field value
Date Time 2017-03-07 09:05:20,049
Log Level INFO
Message Expiring session 0x15aa1b716590000, timeout of 6000ms exceeded
Source File Name SessionTracker:ZooKeeperServer@355

Related log types

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help Zookeeper Logs