You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for conditional execution of processors in Fluent Bit based on log record content. This will allow processors to be selectively applied only when specified conditions are met, leveraging the existing flb_conditionals.c implementation.
Implementation details
The implementation would extend the processor architecture to:
Allow processors to have conditions defined in YAML configuration
Check if conditions are met for each log record before applying the processor
Skip processing for log records that don't match the conditions
Use the existing conditional operators from flb_conditionals.c
Examples
1. Conditionally modify logs based on log level with content_modifier
The condition key seems to overlap with condition parameter for modify filter. This causes configuration errors when using modify filter as an input processor. I tried replacing modify filter with content_modifier processor but modify filter is more flexible as it allows conditions such as key_exists. Looks like current implementation of content_modifier does not handle cases where the field does not exist.
Description
Add support for conditional execution of processors in Fluent Bit based on log record content. This will allow processors to be selectively applied only when specified conditions are met, leveraging the existing
flb_conditionals.c
implementation.Implementation details
The implementation would extend the processor architecture to:
flb_conditionals.c
Examples
1. Conditionally modify logs based on log level with content_modifier
2. Apply SQL processor only to database logs
3. Process only HTTP 500 errors with content_modifier
4. Filter sensitive data with content_modifier for specific paths
5. Add OpenTelemetry envelope only for production logs
6. Apply template processor only for specific services
7. Conditionally add context data for debugging with content_modifier
The text was updated successfully, but these errors were encountered: