# Logstash don't log more than 500 files

**URL:** <https://discuss.elastic.co/t/logstash-dont-log-more-than-500-files/150440>\
**Category:** Logstash\
**Created:** [September 29, 2018, 11:19pm UTC](https://discuss.elastic.co/t/logstash-dont-log-more-than-500-files/150440 "2018-09-29T23:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zabaala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zabaala/32/36016_2.png) [@zabaala](https://discuss.elastic.co/u/zabaala)\
**Post date:** [September 29, 2018, 11:19pm UTC](https://discuss.elastic.co/t/logstash-dont-log-more-than-500-files/150440/1 "2018-09-29T23:19:20Z")

</div>

Hi,

I create a pipeline to logstash to read all files (58k) existing on specific directory. Inside of each file has a line of json terminated with a new line.

The problems is: the logstash only read (send to my elasticsearch) 502 files (502 entries)... the other files aren't readed.

Whats the possible problem?

See the my pipeline:

```
input { 
    file {
        path => "/path/to/files/*.json"
        codec => json
        start_position => "beginning"
    }
}

output {
    elasticsearch { 
        hosts => ["http://localhost:9200"] 
        index => "myindex"
    }
    #stdout { codec=> rubydebug }
}
```

---

<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 27, 2018, 11:19pm UTC](https://discuss.elastic.co/t/logstash-dont-log-more-than-500-files/150440/2 "2018-10-27T23:19:29Z")

</div>

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