# log4j:WARN No appenders could be found for logger (org.apache.kafka.clients.consumer.ConsumerConfig). log4j:WARN Please initialize the log4j system properly

**URL:** <https://discuss.elastic.co/t/log4j-warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-consumer-consumerconfig-log4j-warn-please-initialize-the-log4j-system-properly/179678>\
**Category:** Logstash\
**Created:** [May 5, 2019, 3:26pm UTC](https://discuss.elastic.co/t/log4j-warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-consumer-consumerconfig-log4j-warn-please-initialize-the-log4j-system-properly/179678 "2019-05-05T15:26:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulkothanath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulkothanath/32/99122_2.png) [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Post date:** [May 5, 2019, 3:26pm UTC](https://discuss.elastic.co/t/log4j-warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-consumer-consumerconfig-log4j-warn-please-initialize-the-log4j-system-properly/179678/1 "2019-05-05T15:26:21Z")

</div>

I am getting below eror while connecting to Kafka from logstash 5.2.1 and kaka input plugin 5.6.1

> B log4j:WARN No appenders could be found for logger  
> `Preformatted text` (org.apache.kafka.clients.consumer.ConsumerConfig).  
> log4j:WARN Please initialize the log4j system properly.  
> log4j:WARN See [Apache log4j 1.2 - Frequently Asked Technical Questions](http://logging.apache.org/log4j/1.2/faq.html#noconfig) for more info.lockquote

below is my input kafka config:

> input {  
> kafka{  
> group\_id =\> "topic1"  
> jaas\_path =\> "/"  
> sasl\_kerberos\_service\_name =\> "kafka"  
> kerberos\_config =\> "/etc/krb5.conf"  
> auto\_offset\_reset =\> "latest"  
> topics =\> ["cp1"]  
> #codec =\> "json"  
> bootstrap\_servers =\> ""  
> #type =\> "ocs\_cdr\_data"  
> }  
> }

thanks for reading and helping.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 2, 2019, 3:26pm UTC](https://discuss.elastic.co/t/log4j-warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-consumer-consumerconfig-log4j-warn-please-initialize-the-log4j-system-properly/179678/2 "2019-06-02T15:26:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
