# Monitoring filebeat with metricbeat

**URL:** https://discuss.elastic.co/t/monitoring-filebeat-with-metricbeat/211565
**Category:** Beats
**Tags:** elastic-stack-monitoring
**Created:** [December 12, 2019, 5:36am UTC](https://discuss.elastic.co/t/monitoring-filebeat-with-metricbeat/211565 "2019-12-12T05:36:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![prr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prr/32/59246_2.png) [@prr](https://discuss.elastic.co/u/prr)
#### Post date: [December 12, 2019, 5:36am UTC](https://discuss.elastic.co/t/monitoring-filebeat-with-metricbeat/211565/1 "2019-12-12T05:36:45Z")

</div>

I'm trying to setup metricbeat to monitor filebeat stats. But when I tried the beats module for doing so in my metricbeat config, I'm getting this error:

error message from metricbeat logs:

> Error fetching data for metricset beat.stats: error making http request: Get http://filebeat\_ip:5044/stats: dial tcp filebeat\_ip:5044: connect: connection refused

metricbeat.yml file

```
metricbeat.modules:
  - module: beat
    metricsets:
      - stats
      - state
    period: 10s
    hosts: ["filebeat_ip:5044"]

```

where **filebeat\_ip** is the ip where my filebeat is running, which's the same machine as my metricbeat.

Can someone please help me figure out as to why I'm getting this error?

---

<div class="post-metadata">

### Author: ![Michal\_Pristas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michal_pristas/32/46639_2.png) [@Michal\_Pristas](https://discuss.elastic.co/u/Michal_Pristas)
#### Post date: [December 12, 2019, 10:45am UTC](https://discuss.elastic.co/t/monitoring-filebeat-with-metricbeat/211565/2 "2019-12-12T10:45:10Z")

</div>

hey @prr  
welcome to elastic discuss.

have you tried enabling http monitoring on filebeat side following [this article](https://www.elastic.co/guide/en/beats/filebeat/current/monitoring-metricbeat-collection.html) ?

also can you verify that filebeat IP address is reachable from metric beat? no firewall dropping connection etc. Connection refused usually means nothing is listening on specified port.

---

<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: [January 9, 2020, 12:45pm UTC](https://discuss.elastic.co/t/monitoring-filebeat-with-metricbeat/211565/3 "2020-01-09T12:45:11Z")

</div>

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