Filebeat not able to establish connection with my elk host machine

I installed filebeat on my dev server and wanted to fetch log files from there to another machine but when i try to run logstash.bat -f config.json on my elk machine it shows error in my console
←[31mAttempted to send a bulk request to Elasticsearch configured at '["http://http://localhost:9200/"]', but an error occurred and it failed! Are you sure you can reach elasticsea
rch from this machine using the configuration provided? {:client_config=>{:hosts=>["http://http://localhost:9200/"], :ssl=>nil, :transport_options=>{:socket_timeout=>0, :request_ti
meout=>0, :proxy=>nil, :ssl=>{}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::Manticore, :logger=>nil, :tracer=>nil, :reload_connections=>false, :retry_on_failure=

false, :reload_on_failure=>false, :randomize_hosts=>false}, :error_message=>"http", :error_class=>"Manticore::ResolutionFailure", :backtrace=>["F:/wo/logstash-2.1.1/vendor/bundle/
jruby/1.9/gems/manticore-0.4.4-java/lib/manticore/response.rb:35:in initialize'", "org/jruby/RubyProc.java:281:in call'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/manti
core-0.4.4-java/lib/manticore/response.rb:70:in call'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/manticore-0.4.4-java/lib/manticore/response.rb:245:in call_once'", "F:/
wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/manticore-0.4.4-java/lib/manticore/response.rb:148:in code'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/elasticsearch-trans port-1.0.15/lib/elasticsearch/transport/transport/http/manticore.rb:71:in perform_request'", "org/jruby/RubyProc.java:281:in call'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9 /gems/elasticsearch-transport-1.0.15/lib/elasticsearch/transport/transport/base.rb:201:in perform_request'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/elasticsearch-trans
port-1.0.15/lib/elasticsearch/transport/transport/http/manticore.rb:54:in perform_request'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.15/lib/ elasticsearch/transport/client.rb:125:in perform_request'", "F:/wo/logstash-2.1.1/vendor/bundle/jruby/1.9/gems/elasticsearch-api-1.0.15/lib/elasticsearch/api/actions/bulk.rb:87:in

can someone tell me what exactly is the problem?

Filbeat version 1.0.1 installed on ubuntu server
ELK on windows
ES 2.1.1
logstash 2.1.1

i used the config.json as per the documentation

** logstash:**
** # The Logstash hosts**
** hosts: ["183.83.221.80:5044"]**
** # Number of workers per Logstash host.**
** #worker: 1**

** # Optional load balance the events between the Logstash hosts**
** #loadbalance: true**

my filebeat config

Looks like you have configured the Elasticsearch output plugin in Logstash incorrectly. Can you show your Logstash config?

codec => json
port => 5044
}
}

output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}

The hosts parameter should not include 'http://'. See the documentation for an example.

yeah man thanks! but now it is showing logstash start up completed.but logs are not being pushed to elastic search

i tried giving file as an output it worked perfect.but when logstash as output we are getting this problem.Is there any chance that connection is not established between filebeat and logstash

Please do not post screenshots of terminal windows when you can copy the relevant text instead. What does your input config look like in Logstash?