# Replace logstash with kafka

**URL:** https://discuss.elastic.co/t/replace-logstash-with-kafka/208635
**Category:** Logstash
**Created:** [November 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635 "2019-11-20T07:10:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![varunjithtk](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@varunjithtk](https://discuss.elastic.co/u/varunjithtk)
#### Post date: [November 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635/1 "2019-11-20T07:10:37Z")

</div>

If I all my log generating modules can write into kafka why do i need logstash when kafka can directly write into elastic. Is there any disadvantage if I use this setup? One advantage I see is , in my understanding Logstash is not scalable and this setup will solve it.

logs--\> kafka--\> elastic.

Note: All my log sources can write into kafka.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [November 21, 2019, 2:00pm UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635/2 "2019-11-21T14:00:24Z")

</div>

Having kafka in front of logstash is a common use case. If you do not have any filters in logstash then you could indeed argue that it adds no value

---

<div class="post-metadata">

### Author: ![varunjithtk](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@varunjithtk](https://discuss.elastic.co/u/varunjithtk)
#### Post date: [November 22, 2019, 4:22am UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635/3 "2019-11-22T04:22:10Z")

</div>

Can the kafka do the data transforming part ( whatever logstash do with filter)?

---

<div class="post-metadata">

### Author: ![gab.bernasconi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gab.bernasconi/32/57955_2.png) [@gab.bernasconi](https://discuss.elastic.co/u/gab.bernasconi)
#### Post date: [November 22, 2019, 11:33am UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635/4 "2019-11-22T11:33:37Z")

</div>

> [@varunjithtk](#):
>
> Can the kafka do the data transforming part ( whatever logstash do with filter)?

It highly depends on your use case. One option is **Kafka Streams** (see [here](https://kafka.apache.org/documentation/streams/)), but you should carefully evaluate your use case before deciding.

---

<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: [December 20, 2019, 11:44am UTC](https://discuss.elastic.co/t/replace-logstash-with-kafka/208635/5 "2019-12-20T11:44:22Z")

</div>

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