# Logstash installation folder in Windows

**URL:** https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872
**Category:** Logstash
**Created:** [January 8, 2017, 10:44am UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872 "2017-01-08T10:44:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Firass\_Gzayil](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@Firass\_Gzayil](https://discuss.elastic.co/u/Firass_Gzayil)
#### Post date: [January 8, 2017, 10:44am UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/1 "2017-01-08T10:44:04Z")

</div>

Hi,  
I am trying to run logstash under c:\program files  
but I get an error  
An unexpected error occurred! :error =\> bad URI(is not URI?): file://C:/Program Files/Infra/Data/Shipper/logstash5/config/log4j2.properties, :backtrace =\> ["C:/Program Files/Infra/Data/Shipper/logstash5/vendor/jruby/lib/ruby/1.9/uri/common.rb:176:in `split'"

If I install it in a folder without space in the path then it would work fine

Is there a way to overcome this problem ? it is very urgent thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 8, 2017, 11:38pm UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/2 "2017-01-08T23:38:02Z")

</div>

What version are you on?

---

<div class="post-metadata">

### Author: ![Firass\_Gzayil](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@Firass\_Gzayil](https://discuss.elastic.co/u/Firass_Gzayil)
#### Post date: [January 9, 2017, 12:33am UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/3 "2017-01-09T00:33:37Z")

</div>

The latest  
5.1.1  
Windows 10

---

<div class="post-metadata">

### Author: ![Firass\_Gzayil](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@Firass\_Gzayil](https://discuss.elastic.co/u/Firass_Gzayil)
#### Post date: [January 10, 2017, 8:37am UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/4 "2017-01-10T08:37:29Z")

</div>

Any idea?

---

<div class="post-metadata">

### Author: ![Firass\_Gzayil](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@Firass\_Gzayil](https://discuss.elastic.co/u/Firass_Gzayil)
#### Post date: [January 11, 2017, 10:19am UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/5 "2017-01-11T10:19:55Z")

</div>

After digging in the code, I found the problem  
Logstash assumes that the setting dir is relative to the location of the execution folder, and if the execution folder path contains spaces, then it will fail  
The bug should be solved; however i found a way to workaround this problem by providing settings path param with escaped value , e.g.

> bin\logstash -f c:\ProgramData\Infra\Data\Shipper\Config\shipper.conf --path.settings c:/Program%20Files/Infra/Data/Shipper/logstash-5.1.1/config

or to place logstash configuration in c:\programdata and provide the location using --path.settings

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 11, 2017, 7:25pm UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/6 "2017-01-11T19:25:24Z")

</div>

Are you able to raise this as an issue Github please? 🙂

---

<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: [February 8, 2017, 7:25pm UTC](https://discuss.elastic.co/t/logstash-installation-folder-in-windows/70872/7 "2017-02-08T19:25:41Z")

</div>

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