Skip to content

Heartbeat event data structure #3406

@ruflin

Description

@ruflin

This issue is to discuss the heartbeat event data structure. The current structure (with error) looks as following:

http

{
  "@timestamp": "2017-01-19T08:14:26.256Z",
  "beat": {
    "hostname": "ruflin",
    "name": "ruflin",
    "version": "6.0.0-alpha1"
  },
  "duration": {
    "us": 4955
  },
  "error": {
    "message": "Get http://localhost:80: dial tcp 127.0.0.1:80: getsockopt: connection refused",
    "type": "io"
  },
  "host": "localhost",
  "ip": "127.0.0.1",
  "monitor": "http@http://localhost:80",
  "port": 80,
  "resolve_rtt": {
    "us": 3177
  },
  "scheme": "http",
  "tcp_connect_rtt": {
    "us": 1546
  },
  "type": "http",
  "up": false,
  "url": "http://localhost:80"
}

tcp

{
  "@timestamp": "2017-01-19T08:14:26.256Z",
  "beat": {
    "hostname": "ruflin",
    "name": "ruflin",
    "version": "6.0.0-alpha1"
  },
  "duration": {
    "us": 4969
  },
  "error": {
    "message": "dial tcp 127.0.0.1:12345: getsockopt: connection refused",
    "type": "io"
  },
  "host": "localhost",
  "ip": "127.0.0.1",
  "monitor": "tcp-plain@localhost:12345",
  "port": "12345",
  "resolve_rtt": {
    "us": 3192
  },
  "scheme": "tcp",
  "tcp_connect_rtt": {
    "us": 1651
  },
  "type": "tcp",
  "up": false
}

icmp

{
  "@timestamp": "2017-01-19T08:16:45.003Z",
  "beat": {
    "hostname": "ruflin",
    "name": "ruflin",
    "version": "6.0.0-alpha1"
  },
  "duration": {
    "us": 2145
  },
  "host": "localhost",
  "icmp_rtt": {
    "us": 98
  },
  "ip": "127.0.0.1",
  "monitor": "icmp-host-ip@localhost",
  "resolve_rtt": {
    "us": 1925
  },
  "type": "icmp",
  "up": true
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions