Skip to content
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

Fix: Logs: Pipelines: add nil check for grok parser parseFrom field in generated collector config #4286

Conversation

raj-k-singh
Copy link
Collaborator

Summary

collector logs get spammed if the parseFrom field specified in a grok parser doesn't exist on logs.
This change adds a nil check to the collector config generated for grok parsing processors.

Related Issues / PR's

Fixes #4182

@github-actions github-actions bot added the bug Something isn't working label Dec 27, 2023
@raj-k-singh raj-k-singh changed the title Fix/avoid grok parser spamming error logs if field is missing Fix: Logs: Pipelines: add nil check for grok parser parseFrom field in generated collector config Dec 27, 2023
Base automatically changed from fix/qs-pipeline-support-membership-op-for-fields-with-dots to develop December 28, 2023 05:01
@raj-k-singh raj-k-singh force-pushed the fix/avoid-grok-parser-spamming-error-logs-if-field-is-missing branch from 39ade8d to 89c0e6a Compare December 28, 2023 05:03
@raj-k-singh raj-k-singh marked this pull request as ready for review December 28, 2023 05:04
@raj-k-singh raj-k-singh merged commit bcd6ac4 into develop Dec 28, 2023
11 checks passed
@raj-k-singh raj-k-singh deleted the fix/avoid-grok-parser-spamming-error-logs-if-field-is-missing branch December 28, 2023 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Log Parsing Pipelines] Grok parser spams collector logs if parse from field is missing
2 participants