# File path config file for logstash

**URL:** https://discuss.elastic.co/t/file-path-config-file-for-logstash/29396
**Category:** Logstash
**Created:** [September 16, 2015, 12:04pm UTC](https://discuss.elastic.co/t/file-path-config-file-for-logstash/29396 "2015-09-16T12:04:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)
#### Post date: [September 16, 2015, 12:04pm UTC](https://discuss.elastic.co/t/file-path-config-file-for-logstash/29396/1 "2015-09-16T12:04:46Z")

</div>

Hi ,

Is it possible in logstash that, instead of giving the hard-coded file path , I can create a config file where I will have all my paths stored , and if I need to change the file path I can change it in that config file..

Thanks

---

<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: [September 16, 2015, 12:06pm UTC](https://discuss.elastic.co/t/file-path-config-file-for-logstash/29396/2 "2015-09-16T12:06:14Z")

</div>

No, but you can generate the Logstash configuration files based on any source data you like. Configuration management tools like Ansible can help you with that.

---

<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, 5:28am UTC](https://discuss.elastic.co/t/file-path-config-file-for-logstash/29396/3 "2017-07-06T05:28:59Z")

</div>


