Unable to send data to ES 6.0 using Logstash 6.0

Hi,

I wanted to know if there have been any changes to the Logstash configuration process from the previous versions. I created a mapping in ES 6.0 and wanted to send data to it using Logstash. So, my pipeline was as follows:

File -> Logstash -> Elasticsearch

However, when I try to run my Logstash config file, it prints the following message to Powershell console:

[2017-12-01T11:22:18,272][INFO ][logstash.inputs.metrics  ] Monitoring License OK
[2017-12-01T11:22:18,326][ERROR][logstash.inputs.metrics  ] Failed to create monitoring event {:message=>"undefined method `ephemeral_id' for nil:NilClass", :error=>"NoMethodError"}
[2017-12-01T11:22:19,117][INFO ][logstash.pipeline        ] Pipeline started {"pipeline.id"=>"main"}
[2017-12-01T11:22:19,137][INFO ][logstash.agent           ] Pipelines running {:count=>2, :pipelines=>[".monitoring-logstash", "main"]}
[2017-12-01T11:22:22,671][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2017-12-01T11:22:22,687][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticS
earch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://localhost:9200/'"}
[2017-12-01T11:22:27,740][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2017-12-01T11:22:27,740][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticS
earch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://localhost:9200/'"}
[2017-12-01T11:22:32,797][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}

My Elasticsearch instance is running absolutely fine but the error says that the instance is dead.

The error message indicates that ES requires you to authenticate yet Logstash hasn't been configured to supply any credentials.

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