# Problem using Elasticsearch input module

**URL:** <https://discuss.elastic.co/t/problem-using-elasticsearch-input-module/235672>\
**Category:** Logstash\
**Created:** [June 4, 2020, 5:50am UTC](https://discuss.elastic.co/t/problem-using-elasticsearch-input-module/235672 "2020-06-04T05:50:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frippen](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@Frippen](https://discuss.elastic.co/u/Frippen)\
**Post date:** [June 4, 2020, 5:50am UTC](https://discuss.elastic.co/t/problem-using-elasticsearch-input-module/235672/1 "2020-06-04T05:50:52Z")

</div>

I'm trying to use the elasticsearch input module to read an index and save it as an json-file on a share. My problem is that it never stop getting data until the disk is full.

I have an index and Kibana says its about 50Gb but when I stop my logstash-process the file is 1Tb and I can se that it have read the same records many times. How can I limit the module to read the index only once?

Here is my conf in logstash

```auto
input {
    elasticsearch {
        hosts => ["myhost"]
        user => "elastic"
        password => "password"
        ca_file => "cert"
        index => "winlogbeat-7.5.0-new-2020.01.01"
        size => 500
        scroll => "5m"
        ssl => true
    }
}

```

Best regards  
Fredrik

---

<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 2, 2020, 5:50am UTC](https://discuss.elastic.co/t/problem-using-elasticsearch-input-module/235672/2 "2020-07-02T05:50:53Z")

</div>

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