Score:0

Kafka - Get Ip address or hostnames connected to the cluster

bd flag

I have a test Kafka Cluster in AWS MSK with three brokers. I'd like to know how to get information about who is connecting to the cluster either to produce or consume messages.

For instance, MSSQL Server logs successful connections:

Login succeeded for user 'sa'. Connection made using SQL Server authentication. [CLIENT: 192.XX.X.XX]

Is there a way in Kafka to know who is connecting and from where?

Thanks in advance.

Score:0
ar flag

Out of the box...

Producers - not possible

Consumers - use kafka-consumer-groups --describe over all group IDs and parse the output to get client ids.


This does not preclude you from adding distributed tracing solutions that can track Kafka client server connections (and see what topics they interact with)

Luis de Haro avatar
bd flag
Thank you! - any particular tracing solution you'd recommend?
ar flag
Start here - https://www.confluent.io/blog/importance-of-distributed-tracing-for-apache-kafka-based-applications/
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.