# Logstash missing files

**URL:** https://discuss.elastic.co/t/logstash-missing-files/183352
**Category:** Logstash
**Created:** [May 29, 2019, 2:02pm UTC](https://discuss.elastic.co/t/logstash-missing-files/183352 "2019-05-29T14:02:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jamesp220291](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jamesp220291](https://discuss.elastic.co/u/jamesp220291)
#### Post date: [May 29, 2019, 2:02pm UTC](https://discuss.elastic.co/t/logstash-missing-files/183352/1 "2019-05-29T14:02:20Z")

</div>

Hi

See my logstash input config -

#input {  
file {  
path =\> "/data/logs/\*"  
mode =\> "read"  
file\_completed\_action =\> "log"  
file\_completed\_log\_path =\> "/data/logstash-db/17\_file\_completed\_log"  
}  
}

I placed 4389 files in /data/logs/

When doing cat /data/logstash-db/17\_file\_completed.log | wc -l

it is saying 3211, so it is missing/ignoring 1178 of the files.

How do i determine why it is decided to completely ignore these files?

I also get different results each time, if i delete the index/clear the sincedb ect and re-copy them, sometimes it will do all of them, sometimes less.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 29, 2019, 3:51pm UTC](https://discuss.elastic.co/t/logstash-missing-files/183352/2 "2019-05-29T15:51:00Z")

</div>

All I can suggest is to enable '--log.level trace' and wade through tens of thousands of lines of filewatch trace messages to see what is different about the files that it does not read.

---

<div class="post-metadata">

### Author: ![jamesp220291](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jamesp220291](https://discuss.elastic.co/u/jamesp220291)
#### Post date: [May 30, 2019, 6:58am UTC](https://discuss.elastic.co/t/logstash-missing-files/183352/3 "2019-05-30T06:58:00Z")

</div>

Hey @Badger

How do i go about doing this?

---

<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: [June 27, 2019, 6:58am UTC](https://discuss.elastic.co/t/logstash-missing-files/183352/4 "2019-06-27T06:58:02Z")

</div>

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