Server version: Apache/2.4.6 (CentOS) error fields in metricbeat


(Prophoto) #1

2018-01-27T16:50:30Z ERR Error on field 'user': Missing field: user, Error: Key CPUUser not found
2018-01-27T16:50:30Z ERR Error on field 'system': Missing field: system, Error: Key CPUSystem not found
2018-01-27T16:50:30Z ERR Error on field 'children_user': Missing field: children_user, Error: Key CPUChildrenUser not found
2018-01-27T16:50:30Z ERR Error on field 'children_system': Missing field: children_system, Error: Key CPUChildrenSystem not found
2018-01-27T16:50:30Z ERR Error on field 'server_uptime': Missing field: server_uptime, Error: Key ServerUptimeSeconds not found

Config

  • module: apache
    metricsets: ["status"]
    period: 120s
    hosts: ["http://status.mydomain.com"]
    server_status_path: "server-status"
    output.logstash:
    hosts: ["mydomain.net:5044"]
    ssl.certificate_authorities: ["/path/to/logstash_frwrd.crt"]

Apache status page

Apache Server Status for status.mydomain.com (via 10.0.0.217)
Server Version: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.32
Server MPM: prefork
Server Built: Oct 19 2017 20:39:16
Current Time: Saturday, 27-Jan-2018 16:57:57 UTC
Restart Time: Saturday, 27-Jan-2018 16:20:34 UTC
Parent Server Config. Generation: 2
Parent Server MPM Generation: 1
Server uptime: 37 minutes 22 seconds
Server load: 0.03 0.05 0.14
Total accesses: 567 - Total Traffic: 6.2 MB
CPU Usage: u12.71 s2.93 cu0 cs0 - .698% CPU load
.253 requests/sec - 2881 B/second - 11.1 kB/request
4 requests currently being processed, 6 idle workers
__.CR___WW.....................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"
" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
0-1 26870 0/15/36 _ 1.43 19 0 0.0 0.13 0.47 77.75.76.163 domain1.com GET /robots.txt HTTP/1.1
1-1 26871 0/46/76 _ 3.07 16 873 0.0 0.61 1.21 77.75.76.163 domain1.com GET /blog/cooking-recipes/27-breakfast-hash.html HTTP/1.1
2-1 26960 0/7/62 _ 0.62 21 0 0.0 0.02 0.68 69.156.119.150 domain3.org:443 NULL
3-1 - 0/0/55 . 1.10 407 0 0.0 0.00 0.49 ::1 domain4.org:80 OPTIONS * HTTP/1.0
4-1 26878 1/17/26 C 1.63 1 614 79.5 0.16 0.32 73.112.87.55 domain5.org:443 NULL
6-1 26889 0/29/46 _ 1.92 5 238 0.0 0.22 0.36 54.36.148.79 domain6.com:443 GET /component/content/featured.html?id=featured&start=10 HTTP/
10-1 26959 0/10/43 W 1.05 0 0 0.0 0.21 0.59 73.188.203.11 status.mydomain.com:80 GET /server-status?refresh=15 HTTP/1.1
11-0 - 0/0/20 . 0.46 944 76 0.0 0.00 0.54 157.55.39.221 domain10.com:443 GET /images/pic12.jpg HTTP/1.1
Srv Child Server number - generation
PID OS process ID
Acc Number of accesses this connection / this child / this slot
M Mode of operation
CPU CPU usage, number of seconds
SS Seconds since beginning of most recent request
Req Milliseconds required to process most recent request
Conn Kilobytes transferred this connection
Child Megabytes transferred this child
Slot Total megabytes transferred this slot
SSL/TLS Session Cache Status:
cache type: SHMCB, shared memory: 512000 bytes, current entries: 6
subcaches: 32, indexes per subcache: 88
time left on oldest entries' objects: avg: 139 seconds, (range: 1...293)
index usage: 0%, cache usage: 0%
total entries stored since starting: 20
total entries replaced since starting: 0
total entries expired since starting: 14
total (pre-expiry) entries scrolled out of the cache: 0
total retrieves since starting: 5 hit, 0 miss
total removes since starting: 0 hit, 0 miss


(Noémi Ványi) #2

According to the documentation and the code Apache 2.4.6 is not supported by Metricbeat:
https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-apache.html#_compatibility_6

Is it possible for you to upgrade to a supported Apache version?


(system) #3

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