diff --git a/README.md b/README.md index 26aa01a..e57d99e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,15 @@ This is a plugin for [Logstash](https://github.com/elastic/logstash). It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way. +## Logging + +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 +``` + ## Documentation Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/). diff --git a/logstash-output-kafka.gemspec b/logstash-output-kafka.gemspec index ce7407d..4cb31e5 100644 --- a/logstash-output-kafka.gemspec +++ b/logstash-output-kafka.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |s| s.metadata = { 'logstash_plugin' => 'true', 'group' => 'output'} s.requirements << "jar 'org.apache.kafka:kafka-clients', '0.10.0.1'" - s.requirements << "jar 'org.slf4j:slf4j-log4j12', '1.7.21'" + s.requirements << "jar 'org.apache.logging.log4j:log4j-slf4j-impl', '2.8.2'" s.add_development_dependency 'jar-dependencies', '~> 0.3.2'