Elastic Agent + Kafka: best pattern for routing multiple customer topics to separate indices?
retained text
<!-- SC_OFF --><div class="md"><p>Hey guys, hoping someone with more Fleet/Kafka experience can point me in the right direction here!</p> <p>We have multiple customers sending data to separate Kafka topics and want each customer's data landing in its own Elasticsearch data stream. We're using the Custom Kafka Logs integration.</p> <p>I've tried two approaches so far:</p> <p>- One integration instance per customer — works, but doesn't feel like it scales well in the Fleet UI - and then the question appearts... will I have 100 kafka integrations on several agents?</p> <p>- Single integration + ingest pipeline reroute on `logs-kafka_log.generic@custom` — works for routing, but requires manually updating the pipeline every time a new customer/topic is added, which doesn't feel like the right long-term pattern either</p> <p>What's the production-grade pattern for this kind of multi-tenant setup? Is one integration per customer actually the way to go, or am I missing something obvious?</p> <p>Bonus question: we have 4 Elastic Agents across 4 Logstash servers — is increasing topic partitions + shared consumer group the right way to scale consumption across all of them?</p> <p>Running Elastic Agent 9.3.1 on a 3-node KRaft Kafka cluster. Any help appreciated!</p> <p>Thanks!</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/CryptographerPale508"> /u/CryptographerPale508 </a> <br /> <span><a href="https://www.reddit.com/r/devops/comments/1twouyt/elastic_agent_kafka_best_pattern_for_routing/">[link]</a></span>   <span><a href="https://www.reddit.com/r/devops/comments/1twouyt/elastic_agent_kafka_best_pattern_for_routing/">[comments]</a></span>
document fetched 2026-06-05 09:35