# WARN No appenders could be found for logger (org.apache.kafka.clients.producer.ProducerConfig)

**URL:** <https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515>\
**Category:** Logstash\
**Created:** [April 16, 2017, 9:06pm UTC](https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515 "2017-04-16T21:06:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahiminasab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahiminasab/32/17391_2.png) [@rahiminasab](https://discuss.elastic.co/u/rahiminasab)\
**Post date:** [April 16, 2017, 9:06pm UTC](https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515/1 "2017-04-16T21:06:41Z")

</div>

Hi,

I am using Logstash **5.3.0**.

When I use Kafka output plugin in my config file as follows:  
output {  
kafka {  
codec =\> plain {  
format =\> "%{message}"  
}  
bootstrap\_servers =\> "dev02n.wh:9092"  
topic\_id =\> "hdfs\_audit\_log\_test"  
retries =\> 3  
batch\_size =\> 3  
client\_id =\> "hdp-nn-audit"  
}  
}

I get the following warnings:

```
log4j:WARN No appenders could be found for logger (org.apache.kafka.clients.producer.ProducerConfig).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

```

I do not receive any messages in the intended Kafka topic and I guess the reason is probably because that log4j is not setup properly.

What am I missing here?

---

<div class="post-metadata">

**Author:** ![rahiminasab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahiminasab/32/17391_2.png) [@rahiminasab](https://discuss.elastic.co/u/rahiminasab)\
**Post date:** [April 17, 2017, 12:05am UTC](https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515/2 "2017-04-17T00:05:02Z")

</div>

my kafka version is 0.9. Java version 1.8.

downgrading the logstash to 2.3 solved the problem.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 20, 2017, 7:26am UTC](https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515/3 "2017-04-20T07:26:18Z")

</div>

> I do not receive any messages in the intended Kafka topic and I guess the reason is probably because that log4j is not setup properly.

No, that's not likely.

---

<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:** [May 18, 2017, 7:37am UTC](https://discuss.elastic.co/t/warn-no-appenders-could-be-found-for-logger-org-apache-kafka-clients-producer-producerconfig/82515/4 "2017-05-18T07:37:43Z")

</div>

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