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
- Log in to your Site24x7 account.
- Download and install the Site24x7 Server Monitoring agent (Windows | Linux).
- Go to Admin > AppLogs > Log Profile and Add Log Profile.
- Select ZooKeeper Logs from the Choose the Log Type dropdown.
- 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 List of files to search for logs to source them from that particular folder while creating a log profile.
:/var/log/zookeeper/zookeeper*.log/var/log/zookeeper*.log:C:\zookeeper*\logs\zookeeper*.log\Program Files\zookeeper*\logs\zookeeper*.log*
Log pattern
$DateTime:date$ - $LogLevel$ [$ThreadName$:$SourceFileName$@$LineNumber:number$] - $Message$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 six 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 ThreadName SessionTracker SessionTracker ZooKeeperServer LineNumber 355 Message Expiring session 0x15aa1b716590000, timeout of 6000ms exceeded