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}