-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
in_dummy: Add flush_on_startup config. #8222
Conversation
Signed-off-by: Francisco Valente <[email protected]>
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. @nokute78 please take a look
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.
Note: If user doesn't set Match
, fluent-bit doesn't flush on startup.
I think it is not related this PR and I believe user should set Match
.
[INPUT]
Name dummy
Interval_Sec 10
Flush_On_Startup true
[OUTPUT]
Name stdout
# Match *
Signed-off-by: Francisco Valente <[email protected]>
Signed-off-by: Francisco Valente <[email protected]> Signed-off-by: ahspw <[email protected]>
This PR adds new
flush_on_startup
setting to the in_dummy input plugin. Wheninterval_sec/nsec
is set for a long time, its helpful to be able to verify the first event is generated at startup to avoid waiting.Documentation update in fluent/fluent-bit-docs#1264.
Configuration
Output Log
With this config a log message is generated at startup and then every 10 seconds.
Valgrind Output
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.