Connection get refused while connecting to elasticsearch

:~$ /opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --verbose
starting agent {:level=>:info}
starting pipeline {:id=>"main", :level=>:info}
Settings: Default pipeline workers: 1
Starting UDP listener {:address=>"localhost:5044", :level=>:info}
Using mapping template from {:path=>nil, :level=>:info}

[12:18]
Attempting to install template {:manage_template=>{"template"=>"logstash-", "setti ngs"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"default"=>{"_all"=>{"enable d"=>true, "omit_norms"=>true}, "dynamic_templates"=>[{"message_field"=>{"match"=>"m essage", "match_mapping_type"=>"string", "mapping"=>{"type"=>"string", "index"=>"an alyzed", "omit_norms"=>true, "fielddata"=>{"format"=>"disabled"}}}}, {"string_field s"=>{"match"=>"", "match_mapping_type"=>"string", "mapping"=>{"type"=>"string", "i ndex"=>"analyzed", "omit_norms"=>true, "fielddata"=>{"format"=>"disabled"}, "fields "=>{"raw"=>{"type"=>"string", "index"=>"not_analyzed", "ignore_above"=>256}}}}}], " properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"string", "index "=>"not_analyzed"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"float"}, "longitude"=>{"t ype"=>"float"}}}}}}}, :level=>:info}
Connection refused (Connection refused) {:class=>"Manticore::SocketException", :lev el=>:error}
New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["loc alhost:9200"], :level=>:info}
Starting pipeline {:id=>"main", :pipeline_workers=>1, :batch_size=>125, :batch_dela y=>5, :max_inflight=>125, :level=>:info}
Pipeline main started
Attempted to send a bulk request to Elasticsearch configured at '["http://localhost :9200"]', but Elasticsearch appears to be unreachable or down! {:error_message=>"Co nnection refused (Connection refused)", :class=>"Manticore::SocketException", :leve l=>:error}
Attempted to send a bulk request to Elasticsearch configured at '["http://localhost :9200"]', but Elasticsearch appears to be unreachable or down! {:error_message=>"Co nnection refused (Connection refused)", :class=>"Manticore::SocketException", :leve l=>:error}

Yes? Is ES running? On port 9200? On the loopback interface? Could a firewall be blocking the access?

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