Logstash configuration error logstash-6.4.1


(NETHAJI) #1

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:ininitialize'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:224:in initialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:48:ininitialize'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:30:in initialize'", "org/logstash/plugins/PluginFactoryExt.java:217:inplugin'", "org/logstash/plugins/PluginFactoryExt.java:166:in plugin'", "D:/ELK/logstash-6.4.1/logstash-core/lib/logstash/pipeline.rb:71:inplugin'", "(eval):12:in <eval>'", "org/jruby/RubyKernel.java:994:ineval'", "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:ininitialize'", "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:inblock in converge_state'"]}
[2018-10-05T17:23:51,113][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}


(Christian Dahlqvist) #2

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.


(system) #3

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