# How to setup logstash-forwarder to read recursively on a path

**URL:** <https://discuss.elastic.co/t/how-to-setup-logstash-forwarder-to-read-recursively-on-a-path/20962>\
**Category:** Elasticsearch\
**Created:** [November 26, 2014, 11:26pm UTC](https://discuss.elastic.co/t/how-to-setup-logstash-forwarder-to-read-recursively-on-a-path/20962 "2014-11-26T23:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taufek\_Johar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taufek_johar/32/1081_2.png) [@Taufek\_Johar](https://discuss.elastic.co/u/Taufek_Johar)\
**Post date:** [November 26, 2014, 11:26pm UTC](https://discuss.elastic.co/t/how-to-setup-logstash-forwarder-to-read-recursively-on-a-path/20962/1 "2014-11-26T23:26:33Z")

</div>

I have a folder that holds all the logs that I've setup for logstash-forwarder to ship as below:

"paths": [  
"/var/log/\*\*/\*.log"  
]

All my logs are organized in nested folders within the /var/log folder such as:

/var/log/2014/01/01/some.log  
/var/log/2014/01/02/other.log

Seems like logstash-forwarder doesn't pickup any of those logs in this setup.

But if I change my path config to below it will successfully ships the log under /var/log folder only.

"paths": [  
"/var/log/\*.log"  
]

How can I setup logstash-forwarder to recursively read a folder?

-Taufek

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5bcf13ad-0fdb-4c7b-9c5a-4212e0c41cee%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5bcf13ad-0fdb-4c7b-9c5a-4212e0c41cee%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:47am UTC](https://discuss.elastic.co/t/how-to-setup-logstash-forwarder-to-read-recursively-on-a-path/20962/2 "2017-07-06T00:47:24Z")

</div>


