# Logstash configuration error logstash-6.4.1

**URL:** <https://discuss.elastic.co/t/logstash-configuration-error-logstash-6-4-1/151207>\
**Category:** Logstash\
**Created:** [October 5, 2018, 12:03pm UTC](https://discuss.elastic.co/t/logstash-configuration-error-logstash-6-4-1/151207 "2018-10-05T12:03:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nethaji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nethaji/32/72803_2.png) [@Nethaji](https://discuss.elastic.co/u/Nethaji)\
**Post date:** [October 5, 2018, 12:03pm UTC](https://discuss.elastic.co/t/logstash-configuration-error-logstash-6-4-1/151207/1 "2018-10-05T12:03:45Z")

</div>

D:\ELK\logstash-6.4.1\bin\>logstash -f D:\ELK\logstash-6.4.1\config\sample.conf

i'm trying to run the above command it gives error like this,

Sending Logstash logs to D:/ELK/logstash-6.4.1/logs which is now configured via log4j2.properties  
[2018-10-05T17:23:47,850][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-10-05T17:23:48,466][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.4.1"}  
[2018-10-05T17:23:50,686][ERROR][logstash.outputs.elasticsearch] Invalid setting for elasticsearch output plugin:

output {  
elasticsearch {  
# This setting must be a string  
# Expected string, got ["software", "SoftwareLincenseInvetory\_Id"]  
document\_type =\> ["software", "SoftwareLincenseInvetory\_Id"]  
...  
}  
}  
[2018-10-05T17:23:50,726][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=\>["D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/config/mixin.rb:86:in `config_init'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/outputs/base.rb:60:in`initialize'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:224:in `initialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:48:in`initialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:30:in `initialize'", "org/logstash/plugins/PluginFactoryExt.java:217:in`plugin'", "org/logstash/plugins/PluginFactoryExt.java:166:in `plugin'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/pipeline.rb:71:in`plugin'", "(eval):12:in `<eval>'", "org/jruby/RubyKernel.java:994:in`eval'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/pipeline.rb:49:in `initialize'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/pipeline.rb:90:in`initialize'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/pipeline\_action/create.rb:38:in `execute'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/agent.rb:309:in`block in converge\_state'"]}  
[2018-10-05T17:23:51,113][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 5, 2018, 12:05pm UTC](https://discuss.elastic.co/t/logstash-configuration-error-logstash-6-4-1/151207/2 "2018-10-05T12:05:14Z")

</div>

Document type must be a string, and can not be an array. You should however not really use document types at all as they are being deprecated.

---

<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:** [November 2, 2018, 12:05pm UTC](https://discuss.elastic.co/t/logstash-configuration-error-logstash-6-4-1/151207/3 "2018-11-02T12:05:19Z")

</div>

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