Skip to content

Conversation

@jmccormick7
Copy link

Related to changes proposed in PR #11011 in fluent-bit.

This PR adds a new function FLBPluginRegisterWithEventType that enables setting the event type for output plugins. This change updates the header files to match the proposed changes in the fluent-bit repository, and adds documentation in addition to this new feature. (Reflecting changes proposed in fluent-bit-go: PR 80

The proposed changes in go:
Adding event_type to the flb_plugin_proxy_def struct. This allows for the setting of event_type to a value other than the default log only initialization.

In the flb_plugin_proxy_register function default behavior is enforced by checking for unset event_type values. When unset (a value of 0) then log behavior is defaulted. No need for incorrect value checking since this was not a set field in the past. Unset fields are set as current behavior dictates and future use cases using incorrect values can be treated as user error.

Input use case does not use event-type and is unaffected by this change. (Only a struct change but no change to logic or behavior)

@jmccormick7 jmccormick7 requested a review from a team as a code owner October 19, 2025 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant