Support Questions

Find answers, ask questions, and share your expertise

Supress INFO and WARN from logs

I want to suppress INFO , WARN messages for kafka application logs (/var/log/kafka)

can somebody please suggest what changes has to be done from ambari to achieve the same ?

1 REPLY 1

Super Mentor

@Anurag Mishra

Try changing the Kafka Logging level to ERROR

Ambari UI --> Kafka --> Configs --> Advanced --> "Advanced kafka-log4j" 


Inside this file can you try changing the following INFO level to ERROR (to suppress INFO & WARN messages)

Default:

log4j.logger.kafka=INFO, kafkaAppender


Change it as following:

log4j.logger.kafka=ERROR, kafkaAppender

.