HTTP server metricset
editHTTP server metricset
editThis is the server metricset of the module http.
Events sent to the http endpoint will be put by default under the http.server
prefix. To change this use the server.paths
config options. In the example below every request to /foo
will be put under http.foo
.
Also consider using secure settings for the server using TLS/SSL as shown
- module: http metricsets: ["server"] host: "localhost" ssl.certificate: "/etc/pki/server/cert.pem" ssl.key: "/etc/pki/server/cert.key" port: "8080" server.paths: - path: "/foo" namespace: "foo"
For a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{ "@timestamp":"2016-05-23T08:05:34.853Z", "beat":{ "hostname":"beathost", "name":"beathost" }, "metricset":{ "host":"localhost", "module":"http", "name":"server", "rtt":44269 }, "http":{ "server":{ "test_metric": 5, } }, "type":"metricsets" }