# Metricbeat error while reading apache status

**URL:** https://discuss.elastic.co/t/metricbeat-error-while-reading-apache-status/137914
**Category:** Beats
**Tags:** metricbeat
**Created:** [June 29, 2018, 7:50am UTC](https://discuss.elastic.co/t/metricbeat-error-while-reading-apache-status/137914 "2018-06-29T07:50:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sunilmchaudhari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunilmchaudhari/32/9475_2.png) [@sunilmchaudhari](https://discuss.elastic.co/u/sunilmchaudhari)
#### Post date: [June 29, 2018, 7:50am UTC](https://discuss.elastic.co/t/metricbeat-error-while-reading-apache-status/137914/1 "2018-06-29T07:50:53Z")

</div>

hello,  
I am getting below error while reading apache status metric. My apache httpd is running on 51443 port. How can I make metricbeat to read form there?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/3/d3c6eeba1281aec4e9997da80292c332077de1cf.png)

br,  
Sunil

---

<div class="post-metadata">

### Author: ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)
#### Post date: [June 29, 2018, 1:16pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-reading-apache-status/137914/2 "2018-06-29T13:16:22Z")

</div>

Hello @sunilmchaudhari,

The [apache module supports](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-apache.html) a `hosts` option, the defaults we assume the **localhost** and the port **80**.

Example config:

```auto
metricbeat.modules:
- module: apache
  metricsets: ["status"]
  period: 10s
  enabled: true

  # Apache hosts
  hosts: ["http://127.0.0.1:51443"]

```

---

<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: [July 27, 2018, 1:16pm UTC](https://discuss.elastic.co/t/metricbeat-error-while-reading-apache-status/137914/3 "2018-07-27T13:16:25Z")

</div>

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