-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry-pick #20791 to 7.x: Check host fields type before converting to common.MapStr #20834
Conversation
(cherry picked from commit ad7689c)
Pinging @elastic/integrations-platforms (Team:Platforms) |
💔 Tests FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
Cherry-pick of PR #20791 to 7.x branch. Original message:
What does this PR do?
This PR is to address comment for checking
hostFields
type before converting tocommon.MapStr
. Directly converting tocommon.MapStr
will panic if the host field is not acommon.MapStr
.Why is it important?
Filebeat can handle arbitrary data so it's not guaranteed host field is
common.MapStr
type and this will cause a panic.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.