# Metricbeat data not available on Elastic cluster through logstash

**URL:** <https://discuss.elastic.co/t/metricbeat-data-not-available-on-elastic-cluster-through-logstash/133911>\
**Category:** Logstash\
**Created:** [May 30, 2018, 4:03pm UTC](https://discuss.elastic.co/t/metricbeat-data-not-available-on-elastic-cluster-through-logstash/133911 "2018-05-30T16:03:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [May 30, 2018, 4:03pm UTC](https://discuss.elastic.co/t/metricbeat-data-not-available-on-elastic-cluster-through-logstash/133911/1 "2018-05-30T16:03:22Z")

</div>

Hi,

I have deployed a logstash server in one site (lets say A) and this logstash server push the data on elastic cluster on remote site (lets say B).  
On site A I have around 500 hosts and I have installed the metricbeat agent on these 500 hosts and in config file (metricbeat.yml) enabled the settings to push the data on logstash.

output.logstash:

# The Logstash hosts

# hosts: ["localhost:5044"]

hosts: ["logstashserver:5044"]

And on logstash server under conf.d dir I have input and output conf file.

Input file:

input {  
beats {  
port =\> 5044  
}  
}

Output file:

output {  
elasticsearch {  
hosts =\> 'es\_server:9200'  
index =\> "metricbeat-%{+YYYY.MM.dd}"  
}  
}

But I see data is not uploading on ES cluster. Metricbeat log file says:

ERROR pipeline/output.go:74 Failed to connect: dial tcp x.y.z.a:5044: getsockopt: connection refused

While i am able to telnet the host on port 5044

---

<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:** [June 27, 2018, 4:03pm UTC](https://discuss.elastic.co/t/metricbeat-data-not-available-on-elastic-cluster-through-logstash/133911/2 "2018-06-27T16:03:27Z")

</div>

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