You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Christopher Tubbs (Jira)" <ji...@apache.org> on 2022/04/20 12:34:00 UTC

[jira] [Commented] (ZOOKEEPER-4524) Getting too many debug logs in zookeeper 3.8.0. How to change log level?

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

Christopher Tubbs commented on ZOOKEEPER-4524:
----------------------------------------------

Well, that depends on your deployment. 3.8.0 does use logback by default, but you also mentioned Kafka. Are you running ZooKeeper as part of a larger architecture? If so, you may wish to converge on a single slf4j implementation. So, if the rest of your architecture is using some other slf4j binding than logback, you may wish to remove the logback jar from your ZooKeeper class path and replace it with the slf4j binding that you use in the rest of your architecture, as well as a configuration file you're familiar with.

If you are merely asking how to configure the logback config file for the logback slf4j binding that is used in ZooKeeper by default, well then there is a bunch of documentation at logback's website for how to do that: https://logback.qos.ch/manual/configuration.html

In your case, it looks like you might want to add something like the following into your logback.xml configuration file: {{ <logger name="org.apache.zookeeper.server.FinalRequestProcessor" level="WARN" /> }}  to only get warnings on that specific class. Or, perhaps you want to turn off debug logging entirely, in which case you might wish to set the root logger to "INFO" by changing {{ <root level="DEBUG"> }} to {{ <root level="INFO"> }}.

Your specific logging configuration will depend on your specific needs. I don't think there's anything for the ZooKeeper project to do for this issue, unless you are proposing some defaults be changed in the logback configuration that is released with ZooKeeper by default. If you're just asking questions and not proposing a change, then instead of creating an issue, it is often better to ask on the user mailing list. Please see https://zookeeper.apache.org/lists.html

> Getting too many debug logs in zookeeper 3.8.0. How to change log level?
> ------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4524
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4524
>             Project: ZooKeeper
>          Issue Type: Task
>            Reporter: Aman Jain
>            Priority: Major
>
> I am running 3.8.0 version of Zookeeper that uses logback. 
> Getting too many debug logs, In 7 hours it logged more than 300M worth of logs.
> {code:java}
> // ffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:58.325 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:38:58.325 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:58.325 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:59.659 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:38:59.659 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:59.659 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:59.869 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0024
> 11:38:59.869 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0024 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:38:59.869 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0024 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:00.993 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:39:00.993 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:00.993 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:02.327 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:39:02.327 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:02.327 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:03.661 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:39:03.661 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:03.661 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:04.995 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:39:04.995 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:04.995 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:05.874 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0024
> 11:39:05.874 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0024 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:05.874 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0024 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:06.329 [ProcessThread(sid:0 cport:2181):] DEBUG org.apache.zookeeper.server.SessionTrackerImpl - Checking session 0x1020a4e931f0035
> 11:39:06.329 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - Processing request:: sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a
> 11:39:06.329 [SyncThread:0] DEBUG org.apache.zookeeper.server.FinalRequestProcessor - sessionid:0x1020a4e931f0035 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a {code}
> How to change the log level in 3.8.0 kafka?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)