# Reading shipper files from sub directories

**URL:** <https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458>\
**Category:** Logstash\
**Created:** [May 7, 2016, 9:53am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458 "2016-05-07T09:53:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhasin\_Cm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Muhasin\_Cm](https://discuss.elastic.co/u/Muhasin_Cm)\
**Post date:** [May 7, 2016, 9:53am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/1 "2016-05-07T09:53:20Z")

</div>

Hi,

How can i make logstash read shipper conf files inside the sub directories of /etc/logstash/conf.d/

I have copied the conf file inside /etc/logstash/conf.d/ on sub directories.

I need this to be work on the logstash daemon. Currently logstash pipeline starting only when the conf files are under /etc/logstash/conf.d not in its sub directories.

I could get it working on the command line but i need to get it work using daemon.

Any ideas?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 8, 2016, 7:48pm UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/2 "2016-05-08T19:48:38Z")

</div>

The configuration file loader won't search subdirectories if you pass a configuration file path like /etc/logstash/conf.d or /etc/logstash/conf.d/_, but maybe it works with e.g. /etc/logstash/conf.d/_/\*?

---

<div class="post-metadata">

**Author:** ![Muhasin\_Cm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Muhasin\_Cm](https://discuss.elastic.co/u/Muhasin_Cm)\
**Post date:** [May 9, 2016, 5:37am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/3 "2016-05-09T05:37:51Z")

</div>

Hi,

I have tried it in the logstash daemon:

LS\_CONF\_DIR=/etc/logstash/conf.d/_/_

and still pipeline is not starting logstash.

LS\_USER=logstash  
LS\_GROUP=logstash  
LS\_HOME=/var/lib/logstash  
LS\_HEAP\_SIZE="1g"  
LS\_LOG\_DIR=/var/log/logstash  
LS\_LOG\_FILE="${LS\_LOG\_DIR}/$name.log"  
LS\_CONF\_DIR=/etc/logstash/conf.d/_/_  
LS\_OPEN\_FILES=16384  
LS\_NICE=19  
LS\_OPTS="-w 5"

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 9, 2016, 5:51am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/4 "2016-05-09T05:51:50Z")

</div>

Maybe that's not supported then. I think it's arguable that it should work, so you might want to file a GitHub issue.

I don't quite understand why this is important though. Why do you need to store your configuration files in subdirectories?

---

<div class="post-metadata">

**Author:** ![Muhasin\_Cm](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Muhasin\_Cm](https://discuss.elastic.co/u/Muhasin_Cm)\
**Post date:** [May 9, 2016, 5:59am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/5 "2016-05-09T05:59:00Z")

</div>

Hi,

I can seperate different shipper configuration for different machines,like if i have machine name "Muhasin",I can place all the files of the machine in the directory muhasin.

---

<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 6, 2017, 4:58am UTC](https://discuss.elastic.co/t/reading-shipper-files-from-sub-directories/49458/6 "2017-07-06T04:58:40Z")

</div>


