kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthick Kumar <kku...@apptivo.co.in>
Subject Re: Removing the Kafka DEBUG logs in catalina.out using log4j.properties
Date Tue, 15 May 2018 06:19:12 GMT
Hi Andras/Kaufman,

I have tried both logger properties, But it is not working for me.

Here I share the some DEBUG logger message which is print in my tomcat node


DEBUG AbstractCoordinator:704 - Sending Heartbeat request for group
apptivodb5-newsfeed-messages-4-consumer to coordinator xx.xx.xx.xx:9092
(id: 2147483645 rack: null)
DEBUG AbstractCoordinator:717 - Received successful Heartbeat response for
group apptivodb4-newsfeed-messages-4-consumer
DEBUG AbstractCoordinator:717 - Received successful Heartbeat response for
group apptivodb5-newsfeed-messages-4-consumer
DEBUG Fetcher:180 - Sending fetch for partitions
[apptivodb5-newsfeed-messages-0-1] to broker xx.xx.xx.xx:9092 (id: 2 rack:
null)
DEBUG Fetcher:180 - Sending fetch for partitions
[apptivodb1-campaign-launcher-1] to broker xx.xx.xx.xx:9092 (id: 2 rack:
null)
DEBUG Fetcher:180 - Sending fetch for partitions
[apptivodb8-campaign-tracker-email-0] to broker xx.xx.xx.xx:9092 (id: 2
rack: null)
DEBUG Fetcher:180 - Sending fetch for partitions
[apptivodb5-campaign-tracker-email-1] to broker xx.xx.xx.xx:9092 (id: 2
rack: null)



On Mon, May 14, 2018 at 12:46 AM, Kaufman Ng <kaufman@confluent.io> wrote:

> Is the log coming from your application on Tomcat or Kafka? Make sure you
> set the right log4j properties file. In general you can set this in
> log4j.properties like this:
>
> log4j.rootLogger=INFO, stdout
>
> The line in your log4j.properties may look a little bit differently. The
> key thing is to set the root logger to "INFO".
>
> Hope this helps.
>
>
> On Sun, May 13, 2018 at 9:10 AM, Andras Beni <andrasbeni@cloudera.com>
> wrote:
>
> > Hi Kathick,
> >
> > You probably want to add this line to your log4j.properties:
> > log4j.logger.org.apache.kafka=INFO
> > This will remove all DEBUG lines where the logger name starts with
> > org.apache.kafka.
> >
> > HTH,
> > Andras
> >
> > On Fri, May 11, 2018 at 9:28 AM, Karthick Kumar <kkumar@apptivo.co.in>
> > wrote:
> >
> > > Hi,
> > >
> > > I'm using tomcat node as a Kafka consumer, It prints the INFO, DEBUG
> and
> > > ERROR logs.
> > >
> > > When I analyzed in log file debug logs are taking more space. So i'm
> > having
> > > disk space issue.
> > >
> > > I'm using *log4j.properties* for managing the logs, Now I want to
> remove
> > > the DEBUG logs from my logger file.
> > >
> > > Anyone, please guide me to remove the DEBUG logs.
> > >
> > > --
> > > With Regards,
> > > Karthick.K
> > >
> >
>
>
>
> --
> Kaufman Ng
> +1 646 961 8063
> Solutions Architect | Confluent | www.confluent.io
>



-- 
With Regards,
Karthick.K

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message