Error event structureedit

Metricbeat sends an error event when the service is not reachable. The error event has the same structure as the base event, but also has an error field that contains an error string. This makes it possible to check for errors across all metric events.

The following example shows an error event sent when the Apache server is not reachable:

  "@timestamp": "2016-03-18T12:18:57.124Z",
  "apache-status": {},
  "beat": {
    "hostname": "",
    "name": ""
  "error": {
    "message": "Get dial tcp getsockopt: connection refused",
  "metricset": {
    "module": "apache",
    "name": "status",
    "rtt": 1082

  "type": "metricsets"