# Change location of data and config folders (Windows)

**URL:** <https://discuss.elastic.co/t/change-location-of-data-and-config-folders-windows/112459>\
**Category:** Logstash\
**Created:** [December 19, 2017, 3:10pm UTC](https://discuss.elastic.co/t/change-location-of-data-and-config-folders-windows/112459 "2017-12-19T15:10:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teejayuu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teejayuu/32/18356_2.png) [@teejayuu](https://discuss.elastic.co/u/teejayuu)\
**Post date:** [December 19, 2017, 3:10pm UTC](https://discuss.elastic.co/t/change-location-of-data-and-config-folders-windows/112459/1 "2017-12-19T15:10:58Z")

</div>

How do I change the location of the data, logs and config folders in logstash from the default?

Thanks

---

<div class="post-metadata">

**Author:** ![teejayuu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teejayuu/32/18356_2.png) [@teejayuu](https://discuss.elastic.co/u/teejayuu)\
**Post date:** [December 20, 2017, 8:15am UTC](https://discuss.elastic.co/t/change-location-of-data-and-config-folders-windows/112459/2 "2017-12-20T08:15:21Z")

</div>

I've found that I need to modify the following to point to the desired location in logstash.yml:

1. path.setting (for jvm.options, log4j2.properties, logstash.yml, etc)
2. path.data
3. path.logs

I modified these in logstash.yml and moved the contents of the originals to their new locations, but starting logstash (`.\bin\logstash -e 'input { stdin {} } output { stdout {} }'`) gives the following error:  
`warning: no jvm.options found`

So how does logstash know where to look if the logstash.yml in in a non-default location?

---

<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:** [January 17, 2018, 8:15am UTC](https://discuss.elastic.co/t/change-location-of-data-and-config-folders-windows/112459/3 "2018-01-17T08:15:26Z")

</div>

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