# File output, disk full: messages lost?

**URL:** <https://discuss.elastic.co/t/file-output-disk-full-messages-lost/101869>\
**Category:** Logstash\
**Created:** [September 26, 2017, 2:43pm UTC](https://discuss.elastic.co/t/file-output-disk-full-messages-lost/101869 "2017-09-26T14:43:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunricsi\_dh](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kunricsi\_dh](https://discuss.elastic.co/u/kunricsi_dh)\
**Post date:** [September 26, 2017, 2:43pm UTC](https://discuss.elastic.co/t/file-output-disk-full-messages-lost/101869/1 "2017-09-26T14:43:44Z")

</div>

Hi there,

I would like to save _every_ message into a single textfile with file output. (filters will be applied later). I have tested the behaviour of logstash in the case of the disk full, and I was surprised: logstash crashed and started again, and crashed and started again until freeing up some disk space.  
I tried with queue.type: persisted option also (queue files on another partition), and the behavior was the same.

It's a normal behaviour? How can I guarantee that all received messages will be written in the text file?  
(logstash 5.6.0)

---

<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:** [October 24, 2017, 2:43pm UTC](https://discuss.elastic.co/t/file-output-disk-full-messages-lost/101869/2 "2017-10-24T14:43:46Z")

</div>

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