Hello everyone,
I am trying to push logs from logstash to Elasticsearch but its giving below error
Sending Logstash's logs to D:/shweta/ELK_poc/logstash-6.3.0/logs which is now configured via log4j2.properties
[2018-06-27T14:06:54,955][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-06-27T14:06:55,752][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.3.0"}
[2018-06-27T14:06:58,980][INFO ][logstash.pipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2018-06-27T14:06:59,824][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[https://search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com:9200/]}}
[2018-06-27T14:06:59,851][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>https://search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com:9200/, :path=>"/"}
[2018-06-27T14:07:00,087][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com:9200/][Manticore::ResolutionFailure] This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com)"}
[2018-06-27T14:07:00,111][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2018-06-27T14:07:00,132][ERROR][logstash.outputs.elasticsearch] Failed to install template. {:message=>"Template file '' could not be found!", :class=>"ArgumentError", :backtrace=>["D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/template_manager.rb:31:in read_template_file'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/template_manager.rb:17:in
get_template'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/template_manager.rb:7:in install_template'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:96:in
install_template'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:26:in register'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:97:in
register'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:93:in register'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:340:in
register_plugin'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:351:in block in register_plugins'", "org/jruby/RubyArray.java:1734:in
each'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:351:in register_plugins'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:728:in
maybe_setup_out_plugins'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:361:in start_workers'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:288:in
run'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:248:in block in start'"]} [2018-06-27T14:07:00,151][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["https://search-test-domain2-2msy6ufh2vl2ztfulhrtoat6hu.us-west-2.es.amazonaws.com/"]} [2018-06-27T14:07:00,425][INFO ][logstash.filters.geoip ] Using geoip database {:path=>"D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-filter-geoip-5.0.3-java/vendor/GeoLite2-City.mmdb"} [2018-06-27T14:07:01,466][INFO ][logstash.pipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x474d31fb run>"} [2018-06-27T14:07:01,616][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]} [2018-06-27T14:07:02,250][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600} [2018-06-27T14:07:03,437][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<NoMethodError: undefined method
<' for nil:NilClass>, :backtrace=>["D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:222:in get_event_type'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:47:in
event_action_tuple'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:36:in block in multi_receive'", "org/jruby/RubyArray.java:2486:in
map'", "D:/shweta/ELK_poc/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-output-elasticsearch-9.1.1-java/lib/logstash/outputs/elasticsearch/common.rb:36:in multi_receive'", "org/logstash/config/ir/compiler/OutputStrategyExt.java:109:in
multi_receive'", "org/logstash/config/ir/compiler/OutputDelegatorExt.java:156:in multi_receive'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:475:in
block in output_batch'", "org/jruby/RubyHash.java:1343:in each'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:474:in
output_batch'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:426:in worker_loop'", "D:/shweta/ELK_poc/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:384:in
block in start_workers'"]}
[2018-06-27T14:07:03,843][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
- Providing other config files in next comment (due to word limit in this one)