# Config filter not found when using Logstash docker image

**URL:** <https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [March 9, 2020, 3:31pm UTC](https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753 "2020-03-09T15:31:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielfmsouza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielfmsouza/32/64084_2.png) [@danielfmsouza](https://discuss.elastic.co/u/danielfmsouza)\
**Post date:** [March 9, 2020, 3:31pm UTC](https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753/1 "2020-03-09T15:31:48Z")

</div>

When I run Logstash directly on my PC (Windows) it runs fine. Everything works.

Then when I try to use logstash official image ([docker.elastic.co/logstash/logstash:7.6.0](http://docker.elastic.co/logstash/logstash:7.6.0)) it gives me this error:

> [2020-03-09T15:14:46,291][INFO][logstash.config.source.local.configpathloader] No config files found in path {:path=\>"/usr/share/logstash/test/\*"}  
> [2020-03-09T15:14:46,295][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.

My docker compose:

> logstash:  
> image: [docker.elastic.co/logstash/logstash:7.6.0](http://docker.elastic.co/logstash/logstash:7.6.0)  
> container\_name: logstash  
> command: logstash  
> environment:  
> - ELASTIC\_SEARCH\_HOST=localhost:9200  
> - ENV\_NAME=test  
> - XPACK\_MONITORING\_ENABLED=false  
> - PATH\_CONFIG=/usr/share/logstash/test  
> depends\_on:  
> - elastic-search  
> - localstack  
> volumes:  
> #- ./logstash-pipelines.yml:/usr/share/logstash/config/pipelines.yml  
> - ./logstash-filter.conf:/usr/share/logstash/test/logstash-filter.conf

There is no error regarding my logstash-filter.conf volume. The file is present in the source directory.  
I've tried to put the log level to "debug" but still no clue. Also, I've tried adding "-f \<path\_to\_config\>", change the PATH\_CONFIG to several other stuff (like specifying the actual file instead of a path, etc) and the same error happens.  
Even when I run the image using the default config file it starts fine.  
This should be a very stupid mistake which I cannot find for several hours. I really appreciate the help.  
Thanks.

---

<div class="post-metadata">

**Author:** ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)\
**Post date:** [March 9, 2020, 4:00pm UTC](https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753/2 "2020-03-09T16:00:19Z")

</div>

If you attach to the container can you see the file where you expect it to be? That would confirm that the bind mounted volume is actually working as expected.

---

<div class="post-metadata">

**Author:** ![danielfmsouza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielfmsouza/32/64084_2.png) [@danielfmsouza](https://discuss.elastic.co/u/danielfmsouza)\
**Post date:** [March 10, 2020, 9:45am UTC](https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753/3 "2020-03-10T09:45:35Z")

</div>

> [@rcowart](#):
>
> the container can you see the file where you expect it to be? That would confirm that the bind mounted volume is actually working as expected.

Hi Rob,  
I did what you suggested and I found out the file was created as a folder inside the container!

I've changed the volume to copy the whole folder content to destination, not only the config file path, and it worked!  
Like this:

> ./logstash/pipeline:/usr/share/logstash/filter/

Thank you very much.

---

<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:** [April 7, 2020, 9:45am UTC](https://discuss.elastic.co/t/config-filter-not-found-when-using-logstash-docker-image/222753/4 "2020-04-07T09:45:36Z")

</div>

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