-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metricbeat: Apache 2.4.23 field not found errors #3074
Comments
My first thought was this is related to the Apache version as we test with 2.4.20. But running docker hub image for 2.4.23 I also saw the connection stats, but I'm missing the caching entries you have above. @profilernz Could you share your apache config? |
@ruflin Some modules in 2.4.X can actually implement their statistics in to server-status. In such case we can easily implement new ones and update the mapping to match. |
@radoondas We recently introduced the concept of |
@ruflin I have overseen raw fields implementation. Will check it as well.
|
|
@radoondas Based on this the simple current solution is to make Conn optional as it only exists if Extended is enabled? |
Extended seems to be enabled by default since 2.3.6. https://httpd.apache.org/docs/2.4/mod/core.html#extendedstatus |
@ruflin I think I might find the issue. It is most likely related to regex used. Let me test it today with the response from this issue. |
@radoondas Thanks. Keep us posted on this one. Feel free to open a PR ;-) |
@ruflin It is not a regex issue. But with our Schema implementation we do expect that they are in the document we apply to. What options do we have? |
We already have the option to set some fields optional. And this is in this case I think we should do with Con. It is still not 100% clear to me, why the exact same version with same config can have different stats. Lets make it optional then :) |
Well. 2.4.23 is the latest version (2.4.25 just around the corner). I would like to review changes to server-status page because it seems that there were several changes in past releases based on Changelog. |
@radoondas Cool, do you plan to open a PR? |
@ruflin first, I have to figure out if/what has changed :) |
Any news on this? On CentOS 6, the load 1,5,15 fields are not exposed in /server-status, therefore the metricbeat log is filled with errors. |
@robertoschwald No changes yet. |
Unfortunately, I'm not into the code at all.
|
@robertoschwald Ok, lets see if @radoondas has some time, otherwise I will take it up. Thanks for posting the raw output, this will help to do some testing. |
My output on Windows looks like @robertoschwald ones, except that "CPULoad" is missing. For some reason this worked in the past 😢 |
It's getting more and more interesting. I'm curious why the outputs from Apache are so different ❓ |
Here is the output from CentOS6:
|
Checking apache mod_status.c source some metrics may be missing depending on compilation flags or OS, I'm marking them as optional as suggested by @ruflin |
Also I confirmed the issue with CentOS |
As they are not reported by some systems Closes elastic#3074
As they are not reported by some systems Closes #3074
As they are not reported by some systems Closes elastic#3074
As they are not reported by some systems Closes elastic#3074 (cherry picked from commit 3b4a945)
I'm getting:
metricbeat[6664]: schema.go:36: Error on field 'total': Key ConnsTotal not found
metricbeat[6664]: schema.go:36: Error on field 'closing': Key ConnsAsyncClosing not found
metricbeat[6664]: schema.go:36: Error on field 'writing': Key ConnsAsyncWriting not found
metricbeat[6664]: schema.go:36: Error on field 'keep_alive': Key ConnsAsyncKeepAlive not found
Running Metricbeat 5.0.1 with Apache 2.4.23 (from https://ius.io/) on Centos 7:
httpd -version
Server version: Apache/2.4.23 (CentOS)
Server built: Jul 22 2016 09:11:01
metricbeat -version
metricbeat version 5.0.1 (amd64), libbeat 5.0.1
curl http://127.0.0.1:81/server-status?auto
127.0.0.1
ServerVersion: Apache/2.4.23 (CentOS) OpenSSL/1.0.1e-fips
ServerMPM: prefork
Server Built: Jul 22 2016 09:11:01
CurrentTime: Wednesday, 30-Nov-2016 05:32:43 NZDT
RestartTime: Tuesday, 29-Nov-2016 20:41:30 NZDT
ParentServerConfigGeneration: 1
ParentServerMPMGeneration: 0
ServerUptimeSeconds: 31873
ServerUptime: 8 hours 51 minutes 13 seconds
Load1: 0.00
Load5: 0.01
Load15: 0.05
Total Accesses: 2181
Total kBytes: 53079
CPUUser: 8.4
CPUSystem: 1.22
CPUChildrenUser: 0
CPUChildrenSystem: 0
CPULoad: .0301823
Uptime: 31873
ReqPerSec: .0684278
BytesPerSec: 1705.3
BytesPerReq: 24921.1
BusyWorkers: 1
IdleWorkers: 9
Scoreboard: .W.___....................................................................................................................................................................................................................................................
TLSSessionCacheStatus
CacheType: SHMCB
CacheSharedMemory: 512000
CacheCurrentEntries: 0
CacheSubcaches: 32
CacheIndexesPerSubcaches: 88
CacheIndexUsage: 0%
CacheUsage: 0%
CacheStoreCount: 35
CacheReplaceCount: 0
CacheExpireCount: 35
CacheDiscardCount: 0
CacheRetrieveHitCount: 0
CacheRetrieveMissCount: 89
CacheRemoveHitCount: 0
CacheRemoveMissCount: 0
First reported here:
https://discuss.elastic.co/t/metricbeat-apache-2-4-23-field-not-found-errors/67518
The text was updated successfully, but these errors were encountered: