zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankit Kothana (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ZOOKEEPER-3199) Unable to produce verbose logs of Zookeeper
Date Sat, 24 Nov 2018 08:04:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16697683#comment-16697683
] 

Ankit Kothana edited comment on ZOOKEEPER-3199 at 11/24/18 8:03 AM:
--------------------------------------------------------------------

Took reference of https://issues.apache.org/jira/browse/ZOOKEEPER-2170 and updated zkEnv.sh
to change root level of logging to DEBUG, but it didn't resolved the issue.

Attaching log4j.properties and zookeeper.log files

 


was (Author: ankit.kothana):
Took reference of https://issues.apache.org/jira/browse/ZOOKEEPER-2170 and updated zkEnv.sh
to change root level of logging to DEBUG, but it didn't resolved the issue.

zookeeper.log
{quote}ZooKeeper JMX enabled by default
Using config: /usr/local/share/zookeeper/bin/../conf/zoo.cfg
Stopping zookeeper ... STOPPED
ZooKeeper JMX enabled by default
Using config: /usr/local/share/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
{quote}
log4j.properties
{quote}# Define some default values that can be overridden by system properties
zookeeper.root.logger=DEBUG, CONSOLE
zookeeper.console.threshold=DEBUG
zookeeper.log.dir=/var/log/zookeeper
zookeeper.log.file=zookeeper.log
zookeeper.log.threshold=DEBUG
zookeeper.tracelog.dir=.
zookeeper.tracelog.file=zookeeper_trace.log

#
# ZooKeeper Logging Configuration
#

# Format is "<default threshold> (, <appender>)+

# DEFAULT: console appender only
log4j.rootLogger=${zookeeper.root.logger}

# Example with rolling log file
#log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE

# Example with rolling log file and tracing
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE

#
# Log INFO level and above messages to the console
#
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=${zookeeper.console.threshold}
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d\{ISO8601} [myid:%X\{myid}] - %-5p [%t:%C\{1}@%L]
- %m%n

#
# Add ROLLINGFILE to rootLogger to get log file output
# Log DEBUG level and above messages to a log file
log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.ROLLINGFILE.Threshold=${zookeeper.log.threshold}
log4j.appender.ROLLINGFILE.File=${zookeeper.log.dir}/${zookeeper.log.file}

# Max log file size of 10MB
log4j.appender.ROLLINGFILE.MaxFileSize=10MB
# uncomment the next line to limit number of backup files
#log4j.appender.ROLLINGFILE.MaxBackupIndex=10

log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d\{ISO8601} [myid:%X\{myid}] - %-5p [%t:%C\{1}@%L]
- %m%n


#
# Add TRACEFILE to rootLogger to get log file output
# Log DEBUG level and above messages to a log file
log4j.appender.TRACEFILE=org.apache.log4j.FileAppender
log4j.appender.TRACEFILE.Threshold=TRACE
log4j.appender.TRACEFILE.File=${zookeeper.tracelog.dir}/${zookeeper.tracelog.file}

log4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout
### Notice we are including log4j's NDC here (%x)
log4j.appender.TRACEFILE.layout.ConversionPattern=%d\{ISO8601} [myid:%X\{myid}] - %-5p [%t:%C\{1}@%L][%x]
- %m%n
{quote}
 

> Unable to produce verbose logs of Zookeeper
> -------------------------------------------
>
>                 Key: ZOOKEEPER-3199
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3199
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Ankit Kothana
>            Priority: Major
>
> We are using Zookeeper in our system along with Apache Kafka. However, Zookeeper is not
producing any relevant logs (even with lower log levels specified in log4j.properties) in
the log file that could help us in identifying what is currently going on in ZK or Kafka cluster. 
> Please let us know how to retrieve proper logs from ZK cluster.
> Version of ZK : 3.x



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message