Not able to see the apache status using metricbeat

Hi Team

I have set up Metricbeat in my client server and sending the logs to the Elasticsearch and then showing the logs in Kibana. Everything is working fine i am able to get the logs in kibana, But when i load the dashbourd It shows up empty dashbourd.


I checked the logs inside the Kibana i am getting 0 for most of the Values.Please find the screenshot below:-

I am using apache 2.4.25 and i am not able to get any much information about it.Help will be lot appriciated.

Thanks
Ankit Rawat

Hi
I can just see the apache.status.hostname but nothing else below it.What must be wrong with my configuration.Please let me know if you need any information from my side.

Thanks
Ankit Rawat

Which apache version are you using? Could you share your metricbeat log output?

Hi Team

I am using apache 2.4.6 and 2.4.25 in some servers.

here are the logs in metricbeat:-

2017-03-23T14:04:27Z ERR Error on field 'busy': Key BusyWorkers not found
2017-03-23T14:04:27Z ERR Error on field 'idle': Key IdleWorkers not found
2017-03-23T14:04:27Z ERR Error on field 'user': Key CPUUser not found
2017-03-23T14:04:27Z ERR Error on field 'system': Key CPUSystem not found
2017-03-23T14:04:27Z ERR Error on field 'children_user': Key CPUChildrenUser not found
2017-03-23T14:04:27Z ERR Error on field 'children_system': Key CPUChildrenSystem not found
2017-03-23T14:04:27Z ERR Error on field 'total': Key ConnsTotal not found
2017-03-23T14:04:27Z ERR Error on field 'keep_alive': Key ConnsAsyncKeepAlive not found
2017-03-23T14:04:27Z ERR Error on field 'closing': Key ConnsAsyncClosing not found
2017-03-23T14:04:27Z ERR Error on field 'writing': Key ConnsAsyncWriting not found
2017-03-23T14:04:27Z ERR Error on field 'total_accesses': Key Total Accesses not found
2017-03-23T14:04:27Z ERR Error on field 'server_uptime': Key ServerUptimeSeconds not found
2017-03-23T14:04:27Z ERR Error on field 'uptime': Key Uptime not found
2017-03-23T14:04:27Z ERR Error on field '1': Key Load1 not found
2017-03-23T14:04:27Z ERR Error on field '5': Key Load5 not found
2017-03-23T14:04:27Z ERR Error on field '15': Key Load15 not found
2017-03-23T14:04:28Z ERR Error on field 'uptime': Key Uptime not found
2017-03-23T14:04:28Z ERR Error on field 'server_uptime': Key ServerUptimeSeconds not found
2017-03-23T14:04:28Z ERR Error on field '1': Key Load1 not found
2017-03-23T14:04:28Z ERR Error on field '5': Key Load5 not found
2017-03-23T14:04:28Z ERR Error on field '15': Key Load15 not found
2017-03-23T14:04:28Z ERR Error on field 'total_accesses': Key Total Accesses not found
2017-03-23T14:04:28Z ERR Error on field 'busy': Key BusyWorkers not found
2017-03-23T14:04:28Z ERR Error on field 'idle': Key IdleWorkers not found
2017-03-23T14:04:28Z ERR Error on field 'user': Key CPUUser not found
2017-03-23T14:04:28Z ERR Error on field 'system': Key CPUSystem not found
2017-03-23T14:04:28Z ERR Error on field 'children_user': Key CPUChildrenUser not found
2017-03-23T14:04:28Z ERR Error on field 'children_system': Key CPUChildrenSystem not found
2017-03-23T14:04:28Z ERR Error on field 'total': Key ConnsTotal not found
2017-03-23T14:04:28Z ERR Error on field 'writing': Key ConnsAsyncWriting not found
2017-03-23T14:04:28Z ERR Error on field 'keep_alive': Key ConnsAsyncKeepAlive not found
2017-03-23T14:04:28Z ERR Error on field 'closing': Key ConnsAsyncClosing not found
2017-03-23T14:04:28Z ERR Error on field 'total_kbytes': Key Total kBytes not found
2017-03-23T14:04:29Z INFO Total non-zero values: fetches.system-filesystem.events=83286 libbeat.es.published_and_acked_events=419661 libbeat.es.publish.write_bytes=239303095 fetches.apache-status.events=27874 fetches.system-load.events=2788 fetches.system-network.events=8364 fetches.system-process.success=2788 fetches.apache-status.success=27866 fetches.system-cpu.events=2788 fetches.system-fsstat.events=2788 libbeat.publisher.messages_in_worker_queues=419662 libbeat.es.call_count.PublishEvents=33440 fetches.system-cpu.success=2788 fetches.system-memory.events=2788 fetches.system-network.success=2788 fetches.system-process.events=288986 libbeat.publisher.published_events=419662 fetches.system-fsstat.success=2788 fetches.system-load.success=2788 fetches.apache-status.failures=8 fetches.system-filesystem.success=2788 fetches.system-memory.success=2788 libbeat.es.publish.read_bytes=12540544
2017-03-23T14:04:29Z INFO Uptime: 7h44m33.978133608s
2017-03-23T14:04:29Z INFO metricbeat stopped.

Thanks
Ankit

Hm, it seems like most of the fields are not found. Can you check manually what the output is if you do a request to the status page from apache?

Hi

Here is the output for status page for apache,

I hope this is what you were asking me to do ,

Hi

I just now founded that my error was in my metricbeat.yml configuration.
I did not mention the path for the status page .
server_status_path: "server-status"
You guys rock,,,

Thanks
Ankit Rawat

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