Dear Logstash enthousiasts,
I run a cluster of 4 Logstash servers (v8.14) with about 10 Logstash pipelines per node. I use keepalived as VIP failover method. So all 4 nodes have the same 10 Logstash pipelines configured. All pipelines have a Azure DCR and Kafka (to Event Hub) output configured for log ingestion into Sentinel (LAW) and ADX (by Event Hub). My current Event Hub Namespace reached the limit of 10 Event Hubs. When I try to setup a new pipeline (ex. eventhub-02) with a Kafka output to an EH on the new EH namespace, I run into “UNKNOWN_TOPIC_OR_PARTITION” errors with this new Kafka output.
I setup a similar setup in our Test environment to reproduce the problem. When checking the logstash service startup log (see below). Although the eventhub-02 Kafka output is configured with a different connection string to the 2nd EH namespace. The Kafka Producer clientId is linked to the 1st EH namespace for the metadata fetch. Which results in the “UNKNOWN_TOPIC_OR_PARTITION“ errors as the eventhub-02 metadata is not fetched from the correct EH namespace. Did someone run into the same issue and how can this be solved to have kafka outputs on a Logstash server to 2 different EH namespaces?
I need to mention that I already reproduced this issue with the latest 8.x and 9.x Logstash version that contained recenter Kafka output module versions.
Thanks for your comments and input.
Regards,
Nico
Logstash log extract:
[2025-09-03T10:40:08,653][INFO ][logstash.agent ] Pipelines running {:count=>3, :running_pipelines=>[:eventhubtest2, :eventhubtest1, :"metricbeat-logstash-sentinel"], :non_running_pipelines=>}
[2025-09-03T10:40:08,678][INFO ][org.apache.kafka.clients.Metadata][eventhubtest1] [Producer clientId=eventhub-01] Cluster ID: logstash-ehn-01.servicebus.windows.net
[2025-09-03T10:40:08,681][INFO ][org.apache.kafka.clients.Metadata][metricbeat-logstash-sentinel] [Producer clientId=logstash-metricbeat] Cluster ID: logstash-ehn-01.servicebus.windows.net
[2025-09-03T10:40:08,715][INFO ][org.logstash.beats.Server][metricbeat-logstash-sentinel][metricbeat_logstash] Starting server on port: 5044
[2025-09-03T10:40:08,812][INFO ][org.apache.kafka.clients.Metadata][eventhubtest2] [Producer clientId=eventhub-02] Cluster ID: logstash-ehn-01.servicebus.windows.net
[2025-09-03T10:40:10,640][WARN ][org.apache.kafka.clients.NetworkClient][eventhubtest2] [Producer clientId=eventhub-02] Error while fetching metadata with correlation id 3 : {logstash-eventhub-02=UNKNOWN_TOPIC_OR_PARTITION}
[2025-09-03T10:40:12,172][WARN ][org.apache.kafka.clients.NetworkClient][eventhubtest2] [Producer clientId=eventhub-02] Error while fetching metadata with correlation id 4 : {logstash-eventhub-02=UNKNOWN_TOPIC_OR_PARTITION}
[2025-09-03T10:40:13,764][WARN ][org.apache.kafka.clients.NetworkClient][eventhubtest2] [Producer clientId=eventhub-02] Error while fetching metadata with correlation id 5 : {logstash-eventhub-02=UNKNOWN_TOPIC_OR_PARTITION}
[2025-09-03T10:40:15,311][WARN ][org.apache.kafka.clients.NetworkClient][eventhubtest2] [Producer clientId=eventhub-02] Error while fetching metadata with correlation id 6 : {logstash-eventhub-02=UNKNOWN_TOPIC_OR_PARTITION}
[2025-09-03T10:40:16,848][WARN ][org.apache.kafka.clients.NetworkClient][eventhubtest2] [Producer clientId=eventhub-02] Error while fetching metadata with correlation id 7 : {logstash-eventhub-02=UNKNOWN_TOPIC_OR_PARTITION}