# Kafka Input Logging (And Not Consuming)

**URL:** <https://discuss.elastic.co/t/kafka-input-logging-and-not-consuming/105419>\
**Category:** Logstash\
**Created:** [October 26, 2017, 11:44am UTC](https://discuss.elastic.co/t/kafka-input-logging-and-not-consuming/105419 "2017-10-26T11:44:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![directRoot](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@directRoot](https://discuss.elastic.co/u/directRoot)\
**Post date:** [October 26, 2017, 11:44am UTC](https://discuss.elastic.co/t/kafka-input-logging-and-not-consuming/105419/1 "2017-10-26T11:44:49Z")

</div>

Hi all,

I'm attempting to get the Kafka input working, with no success so far!

I'd like to see some more logging from it and noticed on its GitHub page...

> Kafka logs do not respect the Log4J2 root logger level and defaults to INFO, for other levels, you must explicitly set \>the log level in your Logstash deployment's log4j2.properties file, e.g.:
> 
> logger.kafka.name=org.apache.kafka  
> logger.kafka.appenderRef.console.ref=console  
> logger.kafka.level=debug

I've not worked with log4j2 configuration before - after adding the above lines to the log4j2.properties file, I receive this warning when running logstash from the console...

> log4j:WARN No appenders could be found for logger (org.apache.kafka.clients.consumer.ConsumerConfig).

I know logstash is picking the file up, because I've tried a couple of things and caused (large) Java exceptions.

Can anyone advise on whether I've configured the Kafka input logging for debug properly? It sounds like no, but I've also read some discussion elsewhere suggesting not to worry about this warning. If I have, then I might be back later for more help actually getting this thing to consume!

Logstash=5.2.2  
Kafka input plugin=5.0.5 & 5.1.6 (from "gems" directory)  
Kafka version=0.10.2.1

Thanks,  
Chris.

---

<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:** [November 23, 2017, 11:45am UTC](https://discuss.elastic.co/t/kafka-input-logging-and-not-consuming/105419/2 "2017-11-23T11:45:37Z")

</div>

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