-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Stack Version : 9.2.0
Elastic Agent Version : 9.2.0 - 9.2.3
Related Integration : Elastic Defend v9.2.0
Elastic Defend Integration fails to connect to Kafka with SASL Authentication enabled. The following is observed in endpoint log
{"@timestamp":"2026-01-06T03:52:57.882454154Z","agent":{"id":"3756ca50-e27f-486a-b7e3-b5bc05cdfba3","type":"endpoint"},"ecs":{"version":"8.10.0"},"log":{"level":"error","origin":{"file":{"line":62,"name":"KafkaClient.cpp"}}},"message":"KafkaClient.cpp:62 Kafka Error: Local: Authentication failure [-169] | sasl_ssl://****:9092/bootstrap: SASL authentication error: Authentication failed during authentication due to invalid credentials with SASL mechanism SCRAM-SHA-256 (after 382ms in state AUTH_REQ, 4 identical error(s) suppressed)","process":{"pid":284390,"thread":{"id":284437}}}
The same kafka output with the same authentication is used by other integration, and it's working fine. see attachment
relevant output section:
output:
kafka:
__mark_redact_password: true
broker_timeout: 30
client_id: fleet-agents
compression: none
hosts:
- :9092
partition:
random:
group_events: 1
password:
required_acks: 1
sasl:
mechanism: SCRAM-SHA-256
ssl:
certificate_authorities:
-
verification_mode: certificate
timeout: 30
topic: '%{[labels.kafka_topic]}'
type: kafka
username: elastic-agent
version: 2.6.0
revision: 17