# Can we connect esrally to KAFKA

**URL:** <https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [December 4, 2019, 10:55am UTC](https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512 "2019-12-04T10:55:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarvikash1](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@kumarvikash1](https://discuss.elastic.co/u/kumarvikash1)\
**Post date:** [December 4, 2019, 10:55am UTC](https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512/1 "2019-12-04T10:55:21Z")

</div>

Hi All,

I am exploring a pipeline esrally-\>Kafka-\>ELK for one of the POC.  
i understand, esrally works fine ( and only ) with ElasticSearch. Is there any way, where i can use esrally as load generator and feed that data to kafka ?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [December 4, 2019, 1:03pm UTC](https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512/2 "2019-12-04T13:03:31Z")

</div>

Hi,

you're right that Rally is intended to work with Elasticsearch. While its core is agnostic to the system being benchmarked (as long as it uses a request-response interaction model) and it might be doable to make it work with Kafka, it is a bit of a stretch and requires a some trickery and knowledge of Rally.

For starters you definitely need to write a custom Rally runner and configure the Kafka client yourself there. To provide the data you want to send to Kafka, you'll likely need a custom parameter source.

There are maybe a few more details that need to be considered but if I were to attempt it, I'd start there. I am not familiar with benchmarking tools for Kafka but I wonder whether it would be easier to go down that path.

Daniel

---

<div class="post-metadata">

**Author:** ![kumarvikash1](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@kumarvikash1](https://discuss.elastic.co/u/kumarvikash1)\
**Post date:** [December 4, 2019, 7:06pm UTC](https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512/3 "2019-12-04T19:06:50Z")

</div>

Thanks Daniel. I completely agree with you.  
I am looking for some pointers, where i can either reuse or modify workload for producer -\> Kafka -\> ELK pipeline.

Do we have any github project or any blog for similar workload ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 1, 2020, 7:06pm UTC](https://discuss.elastic.co/t/can-we-connect-esrally-to-kafka/210512/4 "2020-01-01T19:06:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
