-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
enhancement(gcp_chronicle sink): Add default fallback logic if log_type template cannot be resolved fo… #22323
base: master
Are you sure you want to change the base?
Conversation
…r Google Chronicle sink
changelog.d/changelog.d/add_default_fallback_index_google_chronicle_sink.enhancement.md
Fixed
Show fixed
Hide fixed
40d8e47
to
25f0f17
Compare
Hey @ArunPiduguDD, do you need a review on this? It's marked as a draft but I am getting notifications because you tagged me as a reviewer. Happy to review when it's ready. |
@pront Just marked it as ready for review |
Datadog ReportBranch report: ✅ 0 Failed, 7 Passed, 0 Skipped, 25.49s Total Time |
changelog.d/add_default_fallback_index_google_chronicle_sink.enhancement.md
Outdated
Show resolved
Hide resolved
pub struct ChroniclePartitioner(Template, Option<Template>); | ||
pub struct ChroniclePartitioner { | ||
log_type: Template, | ||
template_fallback_log_type: Option<String>, |
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:
template_fallback_log_type: Option<String>, | |
fallback_log_type: Option<String>, |
Is this intentionally a String
and not a Template
?
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.
Yea, it's the fallback option if the log_type
template can't be resolved, similar to this Elasticsearch change
Summary
Similar to changes made for the Elasticsearch and Object Storage sinks
Currently, the Google Chronicle sink has the option to specify an log_type to attach to events. This field supports template syntax, however if the template is not able to be resolved, the default behavior is to drop the event.
Adding an optional field that specifies a default fallback log_type that can be used if there is a template rendering error.
Testing
Tested using Vector pipeline with a Google Chronicle sink