-
Notifications
You must be signed in to change notification settings - Fork 2k
reload: preserve configuration path during hot reload #12336
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
Merged
edsiper
merged 4 commits into
fluent:master
from
antonio:antonio/fix-hot-reload-conf-path
Sep 3, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/integration/scenarios/hot_reload_watch/config/fluent-bit-relative-parser-after.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| [SERVICE] | ||
| Flush 1 | ||
| Log_Level info | ||
| Parsers_File relative-parser.conf | ||
| HTTP_Server On | ||
| HTTP_Listen 127.0.0.1 | ||
| HTTP_Port ${FLUENT_BIT_HTTP_MONITORING_PORT} | ||
| Hot_Reload On | ||
|
|
||
| [INPUT] | ||
| Name dummy | ||
| Tag relative_parser | ||
| Samples 1 | ||
| Dummy {"message":"after"} | ||
|
|
||
| [FILTER] | ||
| Name parser | ||
| Match relative_parser | ||
| Key_Name message | ||
| Parser reload_test | ||
| Reserve_Data On | ||
|
|
||
| [OUTPUT] | ||
| Name opentelemetry | ||
| Match relative_parser | ||
| Host 127.0.0.1 | ||
| Port ${TEST_SUITE_HTTP_PORT} | ||
| Logs_URI /v1/logs | ||
| Logs_Body_Key $parsed |
32 changes: 32 additions & 0 deletions
32
tests/integration/scenarios/hot_reload_watch/config/fluent-bit-relative-parser-after.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| service: | ||
| flush: 1 | ||
| log_level: info | ||
| parsers_file: relative-parser.conf | ||
| http_server: on | ||
| http_port: ${FLUENT_BIT_HTTP_MONITORING_PORT} | ||
| hot_reload: on | ||
|
|
||
| pipeline: | ||
| inputs: | ||
| - name: dummy | ||
| tag: relative_parser | ||
| samples: 1 | ||
| dummy: | | ||
| { | ||
| "message": "after" | ||
| } | ||
|
|
||
| filters: | ||
| - name: parser | ||
| match: relative_parser | ||
| key_name: message | ||
| parser: reload_test | ||
| reserve_data: on | ||
|
|
||
| outputs: | ||
| - name: opentelemetry | ||
| match: relative_parser | ||
| host: 127.0.0.1 | ||
| port: ${TEST_SUITE_HTTP_PORT} | ||
| logs_uri: /v1/logs | ||
| logs_body_key: $parsed |
29 changes: 29 additions & 0 deletions
29
tests/integration/scenarios/hot_reload_watch/config/fluent-bit-relative-parser-before.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| [SERVICE] | ||
| Flush 1 | ||
| Log_Level info | ||
| Parsers_File relative-parser.conf | ||
| HTTP_Server On | ||
| HTTP_Listen 127.0.0.1 | ||
| HTTP_Port ${FLUENT_BIT_HTTP_MONITORING_PORT} | ||
| Hot_Reload On | ||
|
|
||
| [INPUT] | ||
| Name dummy | ||
| Tag relative_parser | ||
| Samples 1 | ||
| Dummy {"message":"before"} | ||
|
|
||
| [FILTER] | ||
| Name parser | ||
| Match relative_parser | ||
| Key_Name message | ||
| Parser reload_test | ||
| Reserve_Data On | ||
|
|
||
| [OUTPUT] | ||
| Name opentelemetry | ||
| Match relative_parser | ||
| Host 127.0.0.1 | ||
| Port ${TEST_SUITE_HTTP_PORT} | ||
| Logs_URI /v1/logs | ||
| Logs_Body_Key $parsed |
32 changes: 32 additions & 0 deletions
32
tests/integration/scenarios/hot_reload_watch/config/fluent-bit-relative-parser-before.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| service: | ||
| flush: 1 | ||
| log_level: info | ||
| parsers_file: relative-parser.conf | ||
| http_server: on | ||
| http_port: ${FLUENT_BIT_HTTP_MONITORING_PORT} | ||
| hot_reload: on | ||
|
|
||
| pipeline: | ||
| inputs: | ||
| - name: dummy | ||
| tag: relative_parser | ||
| samples: 1 | ||
| dummy: | | ||
| { | ||
| "message": "before" | ||
| } | ||
|
|
||
| filters: | ||
| - name: parser | ||
| match: relative_parser | ||
| key_name: message | ||
| parser: reload_test | ||
| reserve_data: on | ||
|
|
||
| outputs: | ||
| - name: opentelemetry | ||
| match: relative_parser | ||
| host: 127.0.0.1 | ||
| port: ${TEST_SUITE_HTTP_PORT} | ||
| logs_uri: /v1/logs | ||
| logs_body_key: $parsed |
4 changes: 4 additions & 0 deletions
4
tests/integration/scenarios/hot_reload_watch/config/relative-parser.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [PARSER] | ||
| Name reload_test | ||
| Format regex | ||
| Regex ^(?<parsed>.*)$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [PARSER] | ||
| Name reload_test | ||
| Format json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.