-
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
[packetbeat] Fix interface device parsing for packetbeat protocols #37946
Conversation
ded3eb0
to
d8976f2
Compare
d8976f2
to
5746832
Compare
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM but it would be nice to have a test get a textual config, parse it and show that this works as expected. This would require that this small part of logic be factored into its own function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit then good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 Build Succeeded
History
cc @marc-gr |
💚 Build Succeeded
History
cc @marc-gr |
💚 Build Succeeded
History
cc @marc-gr |
💔 Build Failed
Failed CI StepsHistory
cc @marc-gr |
💚 Build Succeeded
History
cc @marc-gr |
💚 Build Succeeded
History
cc @marc-gr |
Proposed commit message
Currently integrations defining interface device name for protocols are failing with an error such as
[elastic_agent][error] Unit state changed packet-default-packet-network-533ba19b-0436-4693-b553-7fe84d35872c (STARTING->FAILED): failed to initialize protocol analyzers for foo: can not convert 'object' into 'string' accessing 'interface'
due to changes introduced in https://github.com/elastic/beats/pull/36852/files#diff-102cdff9474deb479cd1c099ce54ab013f023692a0783d4bbbf62d2e1fc85b70R174 whereinterface
was assumed to be a string.This fixes the type of the expected config to the proper object to check device presence.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.