# Logstash Failed to Execute

**URL:** <https://discuss.elastic.co/t/logstash-failed-to-execute/215568>\
**Category:** Logstash\
**Created:** [January 18, 2020, 4:47pm UTC](https://discuss.elastic.co/t/logstash-failed-to-execute/215568 "2020-01-18T16:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_Kondapally](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/srinivas_kondapally/32/61014_2.png) [@Srinivas\_Kondapally](https://discuss.elastic.co/u/Srinivas_Kondapally)\
**Post date:** [January 18, 2020, 4:47pm UTC](https://discuss.elastic.co/t/logstash-failed-to-execute/215568/1 "2020-01-18T16:47:48Z")

</div>

Hello,

I am new to Logstash, Just now download logstash and tried to run the command.  
logstash -e 'input{stdin{}}output{stdout{}}'. I got an error

Sending Logstash logs to C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/logs which is now configured via log4j2.properties  
[2020-01-18T21:18:08,811][INFO][logstash.setting.writabledirectory] Creating directory {:setting=\>"path.queue", :path=\>"C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/data/queue"}  
[2020-01-18T21:18:09,018][INFO][logstash.setting.writabledirectory] Creating directory {:setting=\>"path.dead\_letter\_queue", :path=\>"C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/data/dead\_letter\_queue"}  
[2020-01-18T21:18:09,224][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2020-01-18T21:18:09,263][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.5.1"}  
[2020-01-18T21:18:09,331][INFO][logstash.agent] No persistent UUID file found. Generating new UUID {:uuid=\>"3368f3e5-33fa-47bb-89a0-61e4f18d66a3", :path=\>"C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/data/uuid"}  
[2020-01-18T21:18:11,063][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of [\t\r\n], "#", "input", "filter", "output" at line 1, column 1 (byte 1)", :backtrace=\>["C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "C:/Users/adity/Desktop/Elastic_Search/logstash-7.5.1/logstash-core/lib/logstash/compiler.rb:49:in `compile\_graph'", "C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2584:in `map'", "C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:156:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "C:/Users/adity/Desktop/Elastic_Search/logstash-7.5.1/logstash-core/lib/logstash/java_pipeline.rb:27:in `initialize'", "C:/Users/adity/Desktop/Elastic\_Search/logstash-7.5.1/logstash-core/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "C:/Users/adity/Desktop/Elastic_Search/logstash-7.5.1/logstash-core/lib/logstash/agent.rb:326:in `block in converge\_state'"]}  
[2020-01-18T21:18:12,260][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2020-01-18T21:18:16,372][INFO][logstash.runner] Logstash shut down.

Please help me out from this situation. Thanks in advance

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [January 20, 2020, 9:32am UTC](https://discuss.elastic.co/t/logstash-failed-to-execute/215568/2 "2020-01-20T09:32:16Z")

</div>

Hi @Srinivas_Kondapally,

I see that you are using Logstash on a Windows OS. If you were to use the [command-line flag '-e'](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html) with its value in double quotes, it should work. For example:

- `logstash -e "input{stdin{}}output{stdout{}}"`

As mentioned in [our documentation](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html), you could achieve similar results by running the following command: `logstash -e ""` (empty string value). This would use the default input/output plugins (`stdin` and `stdout` respectively).

---

<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 17, 2020, 9:32am UTC](https://discuss.elastic.co/t/logstash-failed-to-execute/215568/3 "2020-02-17T09:32:17Z")

</div>

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