# Metricbeat with Apache Virtual Host

**URL:** https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861
**Category:** Beats
**Tags:** metricbeat
**Created:** [April 10, 2017, 6:00pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861 "2017-04-10T18:00:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![NepaliNightmare](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NepaliNightmare](https://discuss.elastic.co/u/NepaliNightmare)
#### Post date: [April 10, 2017, 6:00pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/1 "2017-04-10T18:00:25Z")

</div>

HI,

I am attempting to monitor 2 web servers that run apache with a virtual host.

When I open the Kibana _Apache HTTPD server status_ dashboard, I get the familiar error of **Saved" field" parameters is now invalid. Please select a new field** and **Visualize: "Field is now a required parameter.**

I had this same error when installing filebeat. I was able to solve this issue by enabling all of the monitoring services in the filebeat.conf file.

This knowledge leads be to believe Metric beat cannot find the appropriate data from the apache server.  
I ensured the apache Server status page was enabled in the Apache configuration file.  
I was unable to navigate to that apache service status page. I think this is related to the website being hosted on a virtual host. The virtual host is a requirement that I can not avoid.

Has anyone been able to monitor metrics on an apache virtual host?

Thank you,  
-A

---

<div class="post-metadata">

### Author: ![Karn\_Griffen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karn_griffen/32/16337_2.png) [@Karn\_Griffen](https://discuss.elastic.co/u/Karn_Griffen)
#### Post date: [April 10, 2017, 10:18pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/2 "2017-04-10T22:18:52Z")

</div>

Do you have something like this in your metricbeat config?

metricbeat.modules:

- module: apache  
metricsets: ["status"]  
enabled: true  
period: 10s

---

<div class="post-metadata">

### Author: ![NepaliNightmare](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NepaliNightmare](https://discuss.elastic.co/u/NepaliNightmare)
#### Post date: [April 11, 2017, 2:43pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/3 "2017-04-11T14:43:27Z")

</div>

Hi Karn,

Below you will find both configuration modules within the metricbeat.yml file.

Please advise if the configurations are correct. I am able to see the _metricbeat system overview_ dashboard in Kibana for the instance/server associated with the Apache webserver module. This tells me that the Metricbeat service is passing metric logs into elasticsearch, and being visualized in Kibana.

The **Saved" field" parameters is now invalid. Please select a new field** and **Visualize: "Field is now a required parameter** errors show in the in the _Apache HTTPD server status_ dashboard for that same instance.

Username and password configurations I left commented out... I don't think that is applicable for my system. RHEL7

I was thinking it may have to do with the Apache Host needs to specify it is a Virtual Host on port 8090.

Please Advise,  
-A

#========================== Modules configuration ============================  
metricbeat.modules:

#------------------------------- Apache Module -------------------------------

- module: apache  
metricsets: ["status"]  
enabled: true  
period: 10s

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

- module: system  
metricsets:

---

<div class="post-metadata">

### Author: ![NepaliNightmare](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@NepaliNightmare](https://discuss.elastic.co/u/NepaliNightmare)
#### Post date: [April 11, 2017, 2:51pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/4 "2017-04-11T14:51:38Z")

</div>

This is all in AWS RHEL7 OS - The Server status page is turned off by default. I needed to enable it by altering the Apache configuration file. I followed this guide: [http://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/](http://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/)

This page clearly states that this will not work with an Apache Virtual Host. Unfortunately it does not link to an article on how to enable the Server-Status page with a virtual host. I have not found any documentation on how to enable this.

Thank you,  
-A

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [April 13, 2017, 12:40pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/5 "2017-04-13T12:40:13Z")

</div>

Just below the note, it states that you need to enabled it for each virtual host. Didn't try it, but that should work.

---

<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: [May 11, 2017, 12:49pm UTC](https://discuss.elastic.co/t/metricbeat-with-apache-virtual-host/81861/6 "2017-05-11T12:49:27Z")

</div>

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