libbeat/processors/util: make mac address rendering conform to ECS#32265
libbeat/processors/util: make mac address rendering conform to ECS#32265efd6 merged 2 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
My only hesitation with this is that it is a breaking change for anyone searching for MAC addresses. I suppose the argument for doing this is that anyone searching for MACs today would need to handle multiple possible formats already anyway since we don't standardize them. |
|
I have the same concerns about the breaking change. The impetus for this is that the ECS specifies the format used in this change. |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
andrewkroh
left a comment
There was a problem hiding this comment.
I suppose the argument for doing this is that anyone searching for MACs today would need to handle multiple possible formats already anyway since we don't standardize them.
Agree. I'm viewing this as a bug in that we are inconsistent with the format specified by ECS for MACs. Plus with all of the Fleet integrations using the ECS specified format, we often end up with a mix of formats in the same event.
There are workarounds if someone needs the non-ECS format. A runtime field could be used to shadow the value and produce both formats or just the non-ECS format. Or a beat processor or ingest node processor could be used to revert to the old format.
What does this PR do?
This alters the syntax of hardware addresses to match the syntax that is specified in ECS.
Why is it important?
Currently it does not match the spec and this leaks out to integrations and modules in ways that are irritating to fix in ingest pipelines.
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesCHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs