-
Notifications
You must be signed in to change notification settings - Fork 474
[Logstash] Add guard against missing elements in codec
payload
#10938
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
Conversation
Due to a bug in Logstash (elastic/logstash#16410), when configuring a codec with optional settings, the stats do not get generated, causing the data collection for codecs, and thus plugins to fail. This commit adds a guard to the retrieval of `encode` and `decode` to ensure that the CEL input does not fail when encountering this issue
🚀 Benchmarks reportPackage
|
Data stream | Previous EPS | New EPS | Diff (%) | Result |
---|---|---|---|---|
log |
6134.97 | 5128.21 | -1006.76 (-16.41%) | 💔 |
To see the full report comment with /test benchmark fullreport
|
💚 Build Succeeded
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
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
Package logstash - 2.4.11 containing this change is available at https://epr.elastic.co/search?package=logstash |
Due to a bug in Logstash (elastic/logstash#16410), when configuring a codec with optional settings, the stats do not get generated, causing the data collection for codecs, and thus plugins to fail. This commit adds a guard to the retrieval of `encode` and `decode` to ensure that the CEL input does not fail when encountering this issue
Due to a bug in Logstash (elastic/logstash#16410), when configuring a codec with optional settings, the stats do not get generated, causing the data collection for codecs, and thus plugins to fail. This commit adds a guard to the retrieval of `encode` and `decode` to ensure that the CEL input does not fail when encountering this issue
Proposed commit message
Add guard against missing elements in
codec
payloadDue to a bug in Logstash (elastic/logstash#16410), when configuring a codec with optional settings, the stats do not get generated, causing the data collection for codecs, and thus plugins to fail.
This commit adds a guard to the retrieval of
encode
anddecode
to ensure that the CEL input does not fail when encountering this issue.Checklist
changelog.yml
file.How to test this PR locally
Setup Logstash Integration to point to a working Logstash instance, the Logstash pipeline should include a codec that is configured with an optional parameter, eg
Navigate to the
Pipeline Details Overview
page, and verify that there is data for this pipeline. There should be entries in theinput
andcodec
sections of the page.Related issues
elastic/logstash#16410