Skip to content

Commit

Permalink
[Doc] kerberos debug instructions (#15779)
Browse files Browse the repository at this point in the history
Co-authored-by: João Duarte <[email protected]>
Co-authored-by: Karen Metts <[email protected]>
  • Loading branch information
3 people authored Jan 12, 2024
1 parent fca1fcc commit 081d8fc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/static/troubleshoot/ts-kafka.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,29 @@ https://github.com/logstash-plugins/logstash-input-kafka/issues/210
* If (and only if) upgrading is not possible, set `consumer_threads` to `1`.


[discrete]
[[ts-kafka-kerberos-debug]]
===== Setting up debugging for Kerberos SASL

You can set up your machine to help you troubleshoot authentication failures in the Kafka client.

* In `config/jvm.options`, add:
+
[source,txt]
-----
-Dsun.security.krb5.debug=true
-----

* In `config/log4j2.properties`, add:
+
[source,txt]
-----
logger.kafkainput.name = logstash.inputs.kafka
logger.kafkainput.level = debug
logger.kafkaoutput.name = logstash.outputs.kafka
logger.kafkaoutput.level = debug
logger.kafka.name = org.apache.kafka
logger.kafka.level = debug
-----

NOTE: Logging entries for Kerberos are NOT sent through Log4j but go directly to the console.

0 comments on commit 081d8fc

Please sign in to comment.