# Logstash start error

**URL:** <https://discuss.elastic.co/t/logstash-start-error/122485>\
**Category:** Logstash\
**Created:** [March 5, 2018, 10:54am UTC](https://discuss.elastic.co/t/logstash-start-error/122485 "2018-03-05T10:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abc965432](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@abc965432](https://discuss.elastic.co/u/abc965432)\
**Post date:** [March 5, 2018, 10:54am UTC](https://discuss.elastic.co/t/logstash-start-error/122485/1 "2018-03-05T10:54:27Z")

</div>

[es@localhost logstash-6.2.2]$ ./bin/logstash -e 'input { stdin { } } output { elasticsearch { host =\> localhost } }'  
Sending Logstash's logs to /home/soft/logstash/logstash-6.2.2/logs which is now configured via log4j2.properties  
[2018-03-05T10:51:29,856][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/home/soft/logstash/logstash-6.2.2/modules/netflow/configuration"}  
[2018-03-05T10:51:29,883][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/home/soft/logstash/logstash-6.2.2/modules/fb\_apache/configuration"}  
[2018-03-05T10:51:30,472][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-03-05T10:51:31,308][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.2.2"}  
[2018-03-05T10:51:31,961][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-03-05T10:51:33,900][ERROR][logstash.outputs.elasticsearch] Unknown setting 'host' for elasticsearch  
[2018-03-05T10:51:33,924][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Something is wrong with your configuration.", :backtrace=\>["/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/config/mixin.rb:89:in `config_init'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/outputs/base.rb:63:in`initialize'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/output\_delegator\_strategies/shared.rb:3:in `initialize'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/output_delegator.rb:24:in`initialize'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/plugins/plugin\_factory.rb:85:in `plugin'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/pipeline.rb:112:in`plugin'", "(eval):12:in `<eval>'", "org/jruby/RubyKernel.java:994:in`eval'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/pipeline.rb:84:in `initialize'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/pipeline.rb:169:in`initialize'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/pipeline\_action/create.rb:40:in `execute'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:315:in`block in converge\_state'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:141:in `with_pipelines'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:312:in`block in converge\_state'", "org/jruby/RubyArray.java:1734:in `each'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:299:in`converge\_state'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:166:in `block in converge_state_and_update'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:141:in`with\_pipelines'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:164:in `converge_state_and_update'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/agent.rb:90:in`execute'", "/home/soft/logstash/logstash-6.2.2/logstash-core/lib/logstash/runner.rb:348:in `block in execute'", "/home/soft/logstash/logstash-6.2.2/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in`block in initialize'"]}

---

<div class="post-metadata">

**Author:** ![stevesimpson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevesimpson/32/41437_2.png) [@stevesimpson](https://discuss.elastic.co/u/stevesimpson)\
**Post date:** [March 5, 2018, 11:41am UTC](https://discuss.elastic.co/t/logstash-start-error/122485/2 "2018-03-05T11:41:46Z")

</div>

Hi, You can see the error (or one of them) here:

`[2018-03-05T10:51:33,900][ERROR][logstash.outputs.elasticsearch] Unknown setting 'host' for elasticsearch`

You could try changing "host" to "hosts" ie:

./bin/logstash -e 'input { stdin { } } output { elasticsearch { hosts =\> ["localhost:9200"] } }'

Take a look at the examples: [https://www.elastic.co/guide/en/logstash/current/config-examples.html](https://www.elastic.co/guide/en/logstash/current/config-examples.html)

---

<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:** [April 2, 2018, 11:41am UTC](https://discuss.elastic.co/t/logstash-start-error/122485/3 "2018-04-02T11:41:47Z")

</div>

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