diff --git a/x-pack/elastic-agent/CHANGELOG.asciidoc b/x-pack/elastic-agent/CHANGELOG.asciidoc index d1e1d775830..039e335a7db 100644 --- a/x-pack/elastic-agent/CHANGELOG.asciidoc +++ b/x-pack/elastic-agent/CHANGELOG.asciidoc @@ -39,6 +39,7 @@ - Avoid Chown on windows {pull}18512[18512] - Clean action store after enrolling to new configuration {pull}18656[18656] - Avoid watching monitor logs {pull}18723[18723] +- Correctly report platform and family. {issue}18665[18665] ==== New features diff --git a/x-pack/elastic-agent/pkg/agent/application/info/agent_metadata.go b/x-pack/elastic-agent/pkg/agent/application/info/agent_metadata.go index 424053276b0..c98f9b8e015 100644 --- a/x-pack/elastic-agent/pkg/agent/application/info/agent_metadata.go +++ b/x-pack/elastic-agent/pkg/agent/application/info/agent_metadata.go @@ -141,9 +141,9 @@ func (i *AgentInfo) ECSMetadata() (*ECSMeta, error) { // Operating system OS: &SystemECSMeta{ - Family: runtime.GOOS, + Family: info.OS.Family, Kernel: info.KernelVersion, - Platform: info.OS.Family, + Platform: info.OS.Platform, Version: info.OS.Version, Name: info.OS.Name, FullName: getFullOSName(info),