# Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError"

**URL:** <https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247>\
**Category:** Logstash\
**Created:** [August 1, 2019, 4:57am UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247 "2019-08-01T04:57:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitesh\_kumar](https://avatars.discourse-cdn.com/v4/letter/h/a6a055/32.png) [@hitesh\_kumar](https://discuss.elastic.co/u/hitesh_kumar)\
**Post date:** [August 1, 2019, 4:57am UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247/1 "2019-08-01T04:57:54Z")

</div>

Hi

I'm using logstash-7.0.1, my configuration file is:

input {

```
    stdout{}

```

}

output {

```
    elasticsearch {

                    hosts => {"localhost:9200"}

    }

    stdout {

            codec => rubydebug

    }

```

}

Logs:

[2019-08-01T10:17:42,206][INFO][logstash.agent] No persistent UUID file found. Generating new UUID {:uuid=\>"6f6eee53-b466-4454-8e0e-46eb12189753", :path=\>"/home/hduser\_/jay/logstash-7.0.1/data/uuid"}

[2019-08-01T10:17:43,834][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, =\> at line 6, column 30 (byte 76) after output {\n\telasticsearch {\n\t\t\thosts =\> {"localhost:9200"", :backtrace=\>["/home/hduser\_/jay/logstash-7.0.1/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "/home/hduser_/jay/logstash-7.0.1/logstash-core/lib/logstash/compiler.rb:49:in`compile\_graph'", "/home/hduser\_/jay/logstash-7.0.1/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2577:in`map'", "/home/hduser\_/jay/logstash-7.0.1/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:151:in`initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "/home/hduser_/jay/logstash-7.0.1/logstash-core/lib/logstash/java_pipeline.rb:23:in`initialize'", "/home/hduser\_/jay/logstash-7.0.1/logstash-core/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "/home/hduser_/jay/logstash-7.0.1/logstash-core/lib/logstash/agent.rb:325:in`block in converge\_state'"]}

[2019-08-01T10:17:44,268][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

[2019-08-01T10:17:49,200][INFO][logstash.runner] Logstash shut down.

Am I doing anything wrong here?

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [August 1, 2019, 7:14am UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247/2 "2019-08-01T07:14:21Z")

</div>

Hi @hitesh_kumar,

Could you please try with below format in your output plugin?

```
output {
  elasticsearch { hosts => ["localhost:9200"] }
  stdout { codec => rubydebug }
}   

```

As its showing error in your o/p plugin.

> [@hitesh\_kumar](#):
>
> :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, =\> at line 6, column 30 (byte 76) after output {\n\telasticsearch {\n\t\t\thosts =\> {"localhost:9200"", :backtrace=\>

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 1, 2019, 11:47am UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247/3 "2019-08-01T11:47:22Z")

</div>

Also, there is no 'stdout {}' input plugin. Did you mean 'stdin {}'?

---

<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 29, 2019, 11:47am UTC](https://discuss.elastic.co/t/failed-to-execute-action-action-logstash-create-pipeline-id-main-exception-logstash-configurationerror/193247/4 "2019-08-29T11:47:24Z")

</div>

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