# Logstash not finding files

**URL:** <https://discuss.elastic.co/t/logstash-not-finding-files/218393>\
**Category:** Logstash\
**Created:** [February 7, 2020, 6:59pm UTC](https://discuss.elastic.co/t/logstash-not-finding-files/218393 "2020-02-07T18:59:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kberry](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@kberry](https://discuss.elastic.co/u/kberry)\
**Post date:** [February 7, 2020, 6:59pm UTC](https://discuss.elastic.co/t/logstash-not-finding-files/218393/1 "2020-02-07T18:59:37Z")

</div>

I am running a logstash instance looking at 10000 gz files between kbs to mb in size. The files are stored in a folder structure of

> `/var/log/prd/<YYYY>/<MM>/<DD>/<TYPE-3characters>/GZFILES/the_files.gz.`

my file option is set to

> file {  
> path =\> ["/var/log/prd/202?/??/??/???/GZFILES/\*.gz"]  
> mode =\> "read"  
> start\_position =\> "beginning"  
> codec =\> "json"  
> }

This worked until a couple days ago when it was no longer able to find the new files. When setting the day to a specific day, (remove the question marks and replace with a date and leaving the type with question marks) it is able to find the new files again. running an IO stat I see that logstash isn't reading any new files when using the wildcard format now. Is there a better way of setting the path in this use case?

---

<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:** [March 6, 2020, 6:59pm UTC](https://discuss.elastic.co/t/logstash-not-finding-files/218393/2 "2020-03-06T18:59:41Z")

</div>

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