Hi Folks,
I am having the following setup.
OS: Window 10 Enterprise 64 bit
Elasticsearch, Logstash, Kibana version: 7.2.0
My elastic search and kibana is working fine. when I am trying to configure logstash its throwing error. I have added all ELK in the environment variable as well.
input
{
stdin{}
}
output
{
elasticsearch {
hosts => ["localhost:9200"]
index => "testing-index"
}
}
When i am trying to run i get following error.
C:\Pramod\rnd\ElasticSearch\logstash-7.2.0>logstash -f kafka.conf
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.runtime.encoding.EncodingService (file:/C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/jars/jruby-complete-9.2.7.0.jar) to field java.io.Console.cs
WARNING: Please consider reporting this to the maintainers of org.jruby.runtime.encoding.EncodingService
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logs which is now configured via log4j2.properties
[2019-12-26T12:51:27,108][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-12-26T12:51:27,123][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.2.0"}
[2019-12-26T12:51:27,801][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, { at line 1, column 6 (byte 6) after input", :backtrace=>["C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:41:in compile_imperative'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:49:in
compile_graph'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/compiler.rb:11:in block in compile_sources'", "org/jruby/RubyArray.java:2577:in
map'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/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'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/java_pipeline.rb:24:in
initialize'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/pipeline_action/create.rb:36:in execute'", "C:/Pramod/rnd/ElasticSearch/logstash-7.2.0/logstash-core/lib/logstash/agent.rb:325:in
block in converge_state'"]}
[2019-12-26T12:51:28,159][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-12-26T12:51:33,028][INFO ][logstash.runner ] Logstash shut down.
Thanks.