Hey there, thank you so much for sticking with me on this problem! It is very much appreciated!
With debug enabled, Machine B's Logstash send out the following heartbeat message;
{
"monitor" => {
"type" => "http",
"name" => "Test Node Elasticsearch",
"ip" => "192.168.239.128",
"timespan" => {
"lt" => "2024-02-21T16:03:59.688Z",
"gte" => "2024-02-21T16:03:49.688Z"
},
"status" => "up",
"check_group" => "cd0abed7-d0d2-11ee-9833-000c291ba6dc-1",
"id" => "test-elasticsearch",
"duration" => {
"us" => 7622
}
},
"event" => {
"dataset" => "http",
"type" => "heartbeat/summary"
},
"ecs" => {
"version" => "8.0.0"
},
"tcp" => {
"rtt" => {
"connect" => {
"us" => 257
}
}
},
"@version" => "1",
"metadata_backup" => {
"input" => {
"beats" => {
"host" => {
"ip" => "127.0.0.1"
}
}
},
"version" => "8.11.1",
"beat" => "heartbeat",
"type" => "_doc"
},
"state" => {
"checks" => 16,
"down" => 0,
"started_at" => "2024-02-21T11:01:19.771964557-05:00",
"ends" => nil,
"duration_ms" => "149916",
"status" => "up",
"up" => 16,
"id" => "default-18dcc66679b-0",
"flap_history" => []
},
"summary" => {
"final_attempt" => true,
"down" => 0,
"status" => "up",
"retry_group" => "cd0abed7-d0d2-11ee-9833-000c291ba6dc",
"up" => 1,
"max_attempts" => 1,
"attempt" => 1
},
"observer" => {
"ip" => [
[0] "192.168.239.128",
[1] "fe80::20c:29ff:fe1b:a6dc"
],
"mac" => [
[0] "00-0C-29-1B-A6-DC"
],
"hostname" => "highsidemachine.com"
},
"tls" => {
"version" => "1.3",
"established" => true,
"certificate_not_valid_before" => "2023-11-29T17:11:16.000Z",
"version_protocol" => "tls",
"rtt" => {
"handshake" => {
"us" => 5132
}
},
"certificate_not_valid_after" => "2026-11-28T17:11:16.000Z",
"cipher" => "TLS-AES-256-GCM-SHA384",
"server" => {
"x509" => {
"not_before" => "2023-11-29T17:11:16.000Z",
"subject" => {
"common_name" => "elastic",
"distinguished_name" => "CN=elastic"
},
"not_after" => "2026-11-28T17:11:16.000Z",
"signature_algorithm" => "SHA256-RSA",
"public_key_size" => 2048,
"public_key_exponent" => 65537,
"serial_number" => "700267725123170265758521605690421630765307868547",
"public_key_algorithm" => "RSA",
"issuer" => {
"common_name" => "Elastic Certificate Tool Autogenerated CA",
"distinguished_name" => "CN=Elastic Certificate Tool Autogenerated CA"
}
},
"hash" => {
"sha1" => "e612bbe877199e19a169ba1e87b0190d726ca541",
"sha256" => "102321c71fcb1d75696f99a6fa0d99cf94eb144d9bf4eaa7b032cd5773cfdc39"
}
}
},
"tags" => [
[0] "beats_input_raw_event"
],
"@timestamp" => 2024-02-21T16:03:49.688Z,
"url" => {
"scheme" => "https",
"domain" => "192.168.239.128",
"port" => 9200,
"full" => "https://192.168.239.128:9200"
},
"http" => {
"response" => {
"body" => {
"hash" => "3923b0ba922ccdf6be2e5990c66867c9ff47103317e78d3424a538eebefbf79e",
"bytes" => 541
},
"headers" => {
"Content-Length" => "541",
"X-Elastic-Product" => "Elasticsearch",
"Content-Type" => "application/json"
},
"status_code" => 200,
"mime_type" => "application/json"
},
"rtt" => {
"validate" => {
"us" => 2022
},
"write_request" => {
"us" => 31
},
"total" => {
"us" => 7542
},
"content" => {
"us" => 217
},
"response_header" => {
"us" => 1804
}
}
},
"agent" => {
"type" => "heartbeat",
"version" => "8.11.1",
"name" => "highsidemachine.com",
"ephemeral_id" => "715c32d1-7293-42fa-bed1-53a4ff9cbb53",
"id" => "d8856b2c-3236-4ec0-a906-590669af4242"
}
}
When Machine A's Logstash receives this heartbeat message, it reports the following;
{
"host" => {
"ip" => "192.168.239.128"
},
"tags" => [
[0] "beats_input_raw_event"
],
"ecs" => {
"version" => "8.0.0"
},
"http" => {
"rtt" => {
"validate" => {
"us" => 2022
},
"write_request" => {
"us" => 31
},
"total" => {
"us" => 7542
},
"content" => {
"us" => 217
},
"response_header" => {
"us" => 1804
}
},
"response" => {
"status_code" => 200,
"body" => {
"hash" => "3923b0ba922ccdf6be2e5990c66867c9ff47103317e78d3424a538eebefbf79e",
"bytes" => 541
},
"mime_type" => "application/json",
"headers" => {
"X-Elastic-Product" => "Elasticsearch",
"Content-Type" => "application/json",
"Content-Length" => "541"
}
}
},
"tcp" => {
"rtt" => {
"connect" => {
"us" => 257
}
}
},
"state" => {
"checks" => 16,
"flap_history" => [],
"up" => 16,
"started_at" => "2024-02-21T11:01:19.771964557-05:00",
"ends" => nil,
"status" => "up",
"down" => 0,
"id" => "default-18dcc66679b-0",
"duration_ms" => "149916"
},
"observer" => {
"ip" => [
[0] "192.168.239.128",
[1] "fe80::20c:29ff:fe1b:a6dc"
],
"mac" => [
[0] "00-0C-29-1B-A6-DC"
],
"hostname" => "highsidemachine.com"
},
"type" => "heartbeat",
"@version" => "1",
"url" => {
"scheme" => "https",
"domain" => "192.168.239.128",
"port" => 9200,
"full" => "https://192.168.239.128:9200"
},
"event" => {
"type" => "heartbeat/summary",
"dataset" => "http"
},
"monitor" => {
"type" => "http",
"ip" => "192.168.239.128",
"name" => "Test Node Elasticsearch",
"status" => "up",
"check_group" => "cd0abed7-d0d2-11ee-9833-000c291ba6dc-1",
"timespan" => {
"gte" => "2024-02-21T16:03:49.688Z",
"lt" => "2024-02-21T16:03:59.688Z"
},
"duration" => {
"us" => 7622
},
"id" => "test-elasticsearch"
},
"tls" => {
"server" => {
"x509" => {
"issuer" => {
"distinguished_name" => "CN=Elastic Certificate Tool Autogenerated CA",
"common_name" => "Elastic Certificate Tool Autogenerated CA"
},
"public_key_exponent" => 65537,
"subject" => {
"distinguished_name" => "CN=elastic",
"common_name" => "elastic"
},
"not_before" => "2023-11-29T17:11:16.000Z",
"signature_algorithm" => "SHA256-RSA",
"serial_number" => "700267725123170265758521605690421630765307868547",
"not_after" => "2026-11-28T17:11:16.000Z",
"public_key_algorithm" => "RSA",
"public_key_size" => 2048
},
"hash" => {
"sha1" => "e612bbe877199e19a169ba1e87b0190d726ca541",
"sha256" => "102321c71fcb1d75696f99a6fa0d99cf94eb144d9bf4eaa7b032cd5773cfdc39"
}
},
"certificate_not_valid_before" => "2023-11-29T17:11:16.000Z",
"cipher" => "TLS-AES-256-GCM-SHA384",
"established" => true,
"version" => "1.3",
"version_protocol" => "tls",
"rtt" => {
"handshake" => {
"us" => 5132
}
},
"certificate_not_valid_after" => "2026-11-28T17:11:16.000Z"
},
"agent" => {
"type" => "heartbeat",
"name" => "highsidemachine.com",
"ephemeral_id" => "715c32d1-7293-42fa-bed1-53a4ff9cbb53",
"id" => "d8856b2c-3236-4ec0-a906-590669af4242",
"version" => "8.11.1"
},
"@timestamp" => 2024-02-21T16:03:49.688Z,
"summary" => {
"retry_group" => "cd0abed7-d0d2-11ee-9833-000c291ba6dc",
"up" => 1,
"status" => "up",
"final_attempt" => true,
"attempt" => 1,
"down" => 0,
"max_attempts" => 1
}
}
This is with the Logstash configuration I mentioned before. The weird thing is that the outputs don't seem to line up.