Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Zookeeper logs

avatar
Super Collaborator

was curious to check Zookeeper logs, navigated in /var/log/../zookeeper folder.

I see 2 files with xxxx.out and zookeeper-xxxx-xxxx.out files, also can't find any data in it. Can you please let me know where to locate log files for zookeeper and also can you please advise me if zookeeper will have log files created on a daily/hourly basis.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Viswa

1) Login to Ambari UI

2). Zookeeper -> Config -> Advanced zookeeper-log4j

3). Check if the "${zookeeper.log.dir}" is defined in the "log4j.appender.ROLLINGFILE.File" or not? If not then add it before the file name and restart zookeeper.

log4j.rootLogger=INFO, ROLLINGFILE 
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log

.

Also change the below line

log4j.rootLogger=INFO, CONSOLE

TO following so that we are instructing the Zookeeper to also log in the ROLLINGFILE appender apart from console.

log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Viswa

1) Login to Ambari UI

2). Zookeeper -> Config -> Advanced zookeeper-log4j

3). Check if the "${zookeeper.log.dir}" is defined in the "log4j.appender.ROLLINGFILE.File" or not? If not then add it before the file name and restart zookeeper.

log4j.rootLogger=INFO, ROLLINGFILE 
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/zookeeper.log

.

Also change the below line

log4j.rootLogger=INFO, CONSOLE

TO following so that we are instructing the Zookeeper to also log in the ROLLINGFILE appender apart from console.

log4j.rootLogger=INFO, CONSOLE, ROLLINGFILE

.

avatar
Master Mentor

@Viswa

Were you able to find the Zookeeper logs?