# Issue in Logstash installation on Windows

**URL:** https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852
**Category:** Logstash
**Created:** [June 21, 2018, 12:32pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852 "2018-06-21T12:32:36Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)
#### Post date: [June 21, 2018, 12:32pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/1 "2018-06-21T12:32:37Z")

</div>

Hello all,  
I am completely new to logstash. I began with downloading logstash for windows zip file, unzipped it in d drive. Now i am trying to cmd D:\logstash-6.3.0\bin\>logstash. Its giving me following error:

Sending Logstash's logs to D:/logstash-6.3.0/logs which is now configured via log4j2.properties  
[2018-06-21T17:49:26,207][INFO][logstash.setting.writabledirectory] Creating directory {:setting=\>"path.queue", :path=\>"D:/logstash-6.3.0/data/queue"}  
[2018-06-21T17:49:26,229][INFO][logstash.setting.writabledirectory] Creating directory {:setting=\>"path.dead\_letter\_queue", :path=\>"D:/logstash-6.3.0/data/dead\_letter\_queue"}  
ERROR: Pipelines YAML file is empty. Location: D:/logstash-6.3.0/config/pipelines.yml  
usage:  
bin/logstash -f CONFIG\_PATH [-t] [-r] [] [-w COUNT] [-l LOG]  
bin/logstash --modules MODULE\_NAME [-M "MODULE\_NAME.var.PLUGIN\_TYPE.PLUGIN\_NAME.VARIABLE\_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]  
bin/logstash -e CONFIG\_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]  
bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]  
bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]  
bin/logstash --help  
[2018-06-21T17:49:26,622][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

When i am trying to run this command : D:\logstash-6.3.0\bin\>logstash -e 'input { stdin { } } output { stdout {} }'  
then its giving this error:

ERROR: Unknown command '{'

See: 'bin/logstash --help'  
[ERROR] 2018-06-21 17:52:53.195 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Is anyone having any idea on how to resolve this. I am stuck in the first step itself.  
Thanks in advance

---

<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: [June 21, 2018, 12:37pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/2 "2018-06-21T12:37:29Z")

</div>

You double quotes instead of single quotes in your command.

---

<div class="post-metadata">

### Author: ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)
#### Post date: [June 21, 2018, 12:52pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/3 "2018-06-21T12:52:11Z")

</div>

Hey Magnusbaeck,

Thanks for your input . It worked 🙂 🙂  
Cheers

---

<div class="post-metadata">

### Author: ![Aymen\_Rahal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aymen_rahal/32/44720_2.png) [@Aymen\_Rahal](https://discuss.elastic.co/u/Aymen_Rahal)
#### Post date: [July 5, 2018, 11:00am UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/4 "2018-07-05T11:00:20Z")

</div>

Hello,  
I am trying to execute this command: "Q1E:/usr/share/logstash$./bin/logstash -f /home/aymenstien/Bureau/fb.conf"  
but i am getting an error, please find below the execution result:

aymenstien@aymenstien-VPCEH2Q1E:/usr/share/logstash$ ./bin/logstash -f /home/aymenstien/Bureau/fb.conf  
WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[FATAL] 2018-07-05 12:47:56.496 [main] runner - An unexpected error occurred! {:error=\>#\<ArgumentError: Path "/usr/share/logstash/data" must be a writable directory. It is not writable.\>, :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:448:in `validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:230:in`validate\_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:141:in `block in validate_all'", "org/jruby/RubyHash.java:1343:in`each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:140:in `validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:279:in`execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:238:in`run'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'", "/usr/share/logstash/lib/bootstrap/environment.rb:73:in`'"]}  
[ERROR] 2018-07-05 12:47:56.554 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Can anyone help me?

---

<div class="post-metadata">

### Author: ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)
#### Post date: [July 5, 2018, 11:49am UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/5 "2018-07-05T11:49:53Z")

</div>

Probably you can try running following commands in cmd of your logstash/bin

logstash -f fb.conf --config.test\_and\_exit

logstash -f fb.conf --config.reload.automatic

---

<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: [July 5, 2018, 4:29pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/6 "2018-07-05T16:29:28Z")

</div>

@Aymen_Rahal, please start a new topic. Your question has nothing to do with the original question.

---

<div class="post-metadata">

### Author: ![Oleh](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleh](https://discuss.elastic.co/u/Oleh)
#### Post date: [July 23, 2018, 8:11pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/7 "2018-07-23T20:11:25Z")

</div>

I have the same issue as Shweta did (my system is Windows 2012 R2, logstash 6.3.1):

> [@Shweta\_Priyadarshani](#):
>
> ERROR: Unknown command '{'

I don't see any double quotes in his command:

> [@Shweta\_Priyadarshani](#):
>
> logstash -e 'input { stdin { } } output { stdout {} }'

And I don't have them in mine.

So, what exactly did help to resolve this issue?  
Thanks.

I have found similar error reported here: [-e doesn't work using logstash image from docker.elastic.co](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351)

---

<div class="post-metadata">

### Author: ![Shweta\_Priyadarshani](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Shweta\_Priyadarshani](https://discuss.elastic.co/u/Shweta_Priyadarshani)
#### Post date: [July 25, 2018, 12:47pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/8 "2018-07-25T12:47:44Z")

</div>

> [@Shweta\_Priyadarshani](#):
>
> 'input { stdin { } } output { stdout {} }'

Hi Oleh,  
Just put double quotes in : 'input { stdin { } } output { stdout {} }'  
in place of single quotes , like this :  
"'input { stdin { } } output { stdout {} }"

This had worked for me

---

<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: [August 22, 2018, 12:47pm UTC](https://discuss.elastic.co/t/issue-in-logstash-installation-on-windows/136852/9 "2018-08-22T12:47:56Z")

</div>

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