# Metricbeat is unable to send data to elastic search

**URL:** <https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 25, 2019, 1:50pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787 "2019-01-25T13:50:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chethan\_sarathy](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@chethan\_sarathy](https://discuss.elastic.co/u/chethan_sarathy)\
**Post date:** [January 25, 2019, 1:50pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787/1 "2019-01-25T13:50:07Z")

</div>

Hello,

I have setup Elasticsearch and Kibana in a VM and then started setting up metricbeat. Elasticsearch & Kibana is working fine. But I am unable to send metricbeat data to elastic search.

Once I start running metricbeat I am getting below Error:  
\<  
2019-01-25T19:13:28.634+0530 INFO pipeline/output.go:93 Attempting to reconnect to backoff(elasticsearch([http://10.81.86.26:9200](http://10.81.86.26:9200))) with 24 reconnect attempt(s)  
2019-01-25T19:13:28.634+0530 INFO [publish] pipeline/retry.go:189 retryer: send unwait-signal to consumer  
2019-01-25T19:13:28.634+0530 INFO [publish] pipeline/retry.go:191 done  
2019-01-25T19:13:28.634+0530 INFO [publish] pipeline/retry.go:166 retryer: send wait signal to consumer  
2019-01-25T19:13:28.634+0530 INFO [publish] pipeline/retry.go:168 done  
2019-01-25T19:13:54.119+0530 INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1810,"time":{"ms":4}},"total":{"ticks":4000,"time":{"ms":8},"value":4000},"user":{"ticks":2190,"time":{"ms":4}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":5},"info":{"ephemeral\_id":"4780c44a-018b-415b-a8b0-e87aff9f8846","uptime":{"ms":1173056}},"memstats":{"gc\_next":46086736,"memory\_alloc":23581632,"memory\_total":428077984}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":4117,"retry":50}}},"system":{"load":{"1":0,"15":0.05,"5":0.01,"norm":{"1":0,"15":0.0125,"5":0.0025}}}}}}  
2019-01-25T19:14:24.121+0530 INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":1820,"time":{"ms":2}},"total":{"ticks":4020,"time":{"ms":7},"value":4020},"user":{"ticks":2200,"time":{"ms":5}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":5},"info":{"ephemeral\_id":"4780c44a-018b-415b-a8b0-e87aff9f8846","uptime":{"ms":1203056}},"memstats":{"gc\_next":46086736,"memory\_alloc":23839664,"memory\_total":428336016}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":4117}}},"system":{"load":{"1":0,"15":0.05,"5":0.01,"norm":{"1":0,"15":0.0125,"5":0.0025}}}}}}  
2019-01-25T19:14:28.635+0530 ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch([http://10.81.86.26:9200](http://10.81.86.26:9200))): Get [http://10.81.86.26:9200](http://10.81.86.26:9200): dial tcp 10.81.86.26:9200: connect: connection refused  
2019-01-25T19:14:28.635+0530 INFO pipeline/output.go:93 Attempting to reconnect to backoff(elasticsearch([http://10.81.86.26:9200](http://10.81.86.26:9200))) with 25 reconnect attempt(s)  
2019-01-25T19:14:28.635+0530 INFO [publish] pipeline/retry.go:189 retryer: send unwait-signal to consumer  
2019-01-25T19:14:28.635+0530 INFO [publish] pipeline/retry.go:191 done  
2019-01-25T19:14:28.635+0530 INFO [publish] pipeline/retry.go:166 retryer: send wait signal to consumer  
2019-01-25T19:14:28.635+0530 INFO [publish] pipeline/retry.go:168 done  
2019-01-25T19:14:54.121+0530 INFO [monitoring] log/log.go:144 Non-zero metrics in the last 30s  
/\>

My metricbeat.yml file look like  
\<  
#========================== Modules configuration ============================  
metricbeat.modules:

#------------------------------- System Module -------------------------------

- module: system  
metricsets:

output.elasticsearch:

# Array of hosts to connect to.

hosts: ["[http://10.81.86.26:9200](http://10.81.86.26:9200)"]

/\>

Pls help me on this issue.

Thanks,  
Chethan

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [January 25, 2019, 2:03pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787/2 "2019-01-25T14:03:45Z")

</div>

From the same host as the one running Metricbeat, could you please run the following?

```auto
curl http://10.81.86.26:9200

```

---

<div class="post-metadata">

**Author:** ![chethan\_sarathy](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@chethan\_sarathy](https://discuss.elastic.co/u/chethan_sarathy)\
**Post date:** [January 25, 2019, 4:47pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787/3 "2019-01-25T16:47:49Z")

</div>

I am getting below message:

curl [http://10.81.86.26:9200](http://10.81.86.26:9200)  
curl: (7) Failed connect to 10.81.86.26:9200; Connection refused

I ran same command on Elasticsearch & Kibana host, I am getting same error message as above.

Thanks,  
Chethan

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [January 25, 2019, 5:22pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787/4 "2019-01-25T17:22:29Z")

</div>

That means your Metricbeat host cannot talk to the Elasticsearch host (`10.81.86.26`) on TCP port `9200`. I would check your network configuration and see if there's something blocking access, perhaps a firewall rule or VM networking configuration.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 22, 2019, 5:22pm UTC](https://discuss.elastic.co/t/metricbeat-is-unable-to-send-data-to-elastic-search/165787/5 "2019-02-22T17:22:35Z")

</div>

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