Skip to content

Commit

Permalink
[Elastic Agent] Fix the platform reporting and the family reporting. (#…
Browse files Browse the repository at this point in the history
…18666) (#18731)

* [Elastic Agent] Fix the platform reporting and the family reporting.

This PR fixes:

- Report Family correctly: redhat/debian.
- Report the platform correctly Centos for Centos instead of redhat.

Fixes: #18665
(cherry picked from commit 235df7b)
  • Loading branch information
ph authored May 27, 2020
1 parent 8133cbf commit 692dbbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/elastic-agent/CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- Remove fleet admin from setup script {pull}18611[18611]
- 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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 692dbbc

Please sign in to comment.