# Considering using L4 or kafka

**URL:** https://discuss.elastic.co/t/considering-using-l4-or-kafka/335238
**Category:** Logstash
**Created:** [June 5, 2023, 3:08pm UTC](https://discuss.elastic.co/t/considering-using-l4-or-kafka/335238 "2023-06-05T15:08:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![a01066278824](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a01066278824/32/121855_2.png) [@a01066278824](https://discuss.elastic.co/u/a01066278824)
#### Post date: [June 5, 2023, 3:08pm UTC](https://discuss.elastic.co/t/considering-using-l4-or-kafka/335238/1 "2023-06-05T15:08:46Z")

</div>

im considering two ways.  
first, using L4 between Beats and logstash.  
second, using Kafka between beats and logstahs.

which way is more effective one?

and im wondering if is it possible Beats - Kafka - L4 - Logstash.

thank you guys

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 5, 2023, 3:15pm UTC](https://discuss.elastic.co/t/considering-using-l4-or-kafka/335238/2 "2023-06-05T15:15:30Z")

</div>

What do you mean by `L4`? It is not clear, please provide context.

Do you mean a Layer 4 load balancer?

Also, more effective regarding what? What you want to achieve with those tools?

---

<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: [July 3, 2023, 3:15pm UTC](https://discuss.elastic.co/t/considering-using-l4-or-kafka/335238/3 "2023-07-03T15:15:35Z")

</div>

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