[Elastic-Agent] Agent push ECS meta to fleet#17894
[Elastic-Agent] Agent push ECS meta to fleet#17894michalpristas merged 9 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
| return nil, err | ||
| } | ||
|
|
||
| // TODO: remove these values when kibana migrates to ECS |
There was a problem hiding this comment.
Is there an issue we can link to?
There was a problem hiding this comment.
@nchaulet can i remove those and replace with ECS compliant variants?
There was a problem hiding this comment.
agent hostname/name is missing on ingest management page so it needs to stay here for now
|
|
||
| info := sysInfo.Info() | ||
|
|
||
| // Agent |
| if err != nil { | ||
| return nil, err | ||
| } | ||
|
|
There was a problem hiding this comment.
I am torn here, if we should gracefully recover from that error. What are the impact of this choice, if we return the error it mean the HTTP call will not be made again.
There was a problem hiding this comment.
i think that's true. if we dont pack metadata fleet should keep the previous one and we should continue as usual. you;re right that this sould not be breaking
There was a problem hiding this comment.
but i will handle this at the api level, as this might be used elsewere as well and we should react accordingly
|
LGTM, added a minor question concerning error handling. |
[Elastic-Agent] Agent push ECS meta to fleet (elastic#17894)
What does this PR do?
This PR enhances local metadata sent to fleet on checkin and enroll to conform to ecs format.
It still keeps 3 items it was sending before which will be removed when kibana confirms it does not need it.
Why is it important?
Fixes: #14461
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.