output {
elasticsearch {
hosts => ["114.113.198.147:9200"]
index => "log"
document_type =>"logstash"
}
stdout {
codec => rubydebug
}
}
[2018-04-17T18:10:22,805][INFO ][logstash.outputs.elasticsearch] Running health
check to see if an Elasticsearch connection is working {:healthcheck_url=>http:/
/114.113.198.147:9200/, :path=>"/"}
[2018-04-17T18:10:23,903][WARN ][logstash.outputs.elasticsearch] Attempted to re
surrect connection to dead ES instance, but got an error. {:url=>"http://114.113
.198.147:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool
::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://114.113.198.
147:9200/][Manticore::SocketException] Connection refused: connect"}
elasticsearch is installed on the server