# Persistent queue and kafka

**URL:** <https://discuss.elastic.co/t/persistent-queue-and-kafka/262662>\
**Category:** Logstash\
**Created:** [January 29, 2021, 3:31pm UTC](https://discuss.elastic.co/t/persistent-queue-and-kafka/262662 "2021-01-29T15:31:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bovy89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bovy89/32/83129_2.png) [@bovy89](https://discuss.elastic.co/u/bovy89)\
**Post date:** [January 29, 2021, 3:31pm UTC](https://discuss.elastic.co/t/persistent-queue-and-kafka/262662/1 "2021-01-29T15:31:35Z")

</div>

Hi,  
we are using logstash with persistent queue feature enabled and the following setup:

```auto
filebeat ---> logstash (with PQ) ---> elasticsearch

```

Now we are moving to a kafka based setup like that:

```auto
filebeat ---> kafka ----> logstash ---> elasticsearch

```

In this kind of setup, I think we still neet PQ enabled in order to avoid data loss, right?

---

<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:** [February 26, 2021, 3:32pm UTC](https://discuss.elastic.co/t/persistent-queue-and-kafka/262662/2 "2021-02-26T15:32:15Z")

</div>

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