Open ycombinator opened 1 week ago
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)
It looks to me like this happens because of elastic/go-sysinfo#180. This was picked up in e35a094c0cf432732391a536d079f2b763771dfc which is in the 8.9 branch.
Version
8.15.0-SNAPSHOT
,8.13.2
, likely any version >=8.9.0
.Operating System
Windows 10, but quite likely this is happening on any Windows versions, and likely on any OS that allows setting a hostname with uppercase characters in it.
Steps to Reproduce
DESKTOP-E39GQOG
.system
integration enabled.logs-*
indices for data from the Agent. Set up the columns as shown in the screenshot below.host.hostname
column.Expected behavior
The values of the
host.hostname
field should be exactly the same as of the hostname from step 1 above, including matching the case exactly.Observed behavior
The values of the
host.hostname
field are lowercased.Other relevant information
This behavior is not observed in![8 8 2](https://github.com/elastic/beats/assets/51061/a0b1a11d-3f2b-442c-9ebd-fd5c0a011613)
8.8.2
:⚠️ When fixing this regression, only the value of the
host.hostname
field should be fixed. The value ofhost.name
should remain lowercased, as mandated by ECS. Similarly, the value ofagent.name
should not be impacted by the fix either.