fix: Parsers do not have to be in seperate files #2057
Merged
+1
−1
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.
On the "Configuring parsers" section, subsection "Parser Configuration File"[2], it says:
But on the "Parsers" page[1] for the v4.0 documentation, it states:
Those seem like contradictory statements. I think the truth is that parsers may be defined in the main global configuration file if the main configuration file is YAML, or in a separate "parsers" file in either classic or YAML config files. I think the behavior of supporting parsers defined in the main YAML configuration file has been supported since v3.2
I'm proposing the smallest possible change to make the docs no longer be incorrect, but please close this PR if y'all feel there's broader changes to be made to these docs.
[1] - https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/yaml/parsers-section
[2] - https://docs.fluentbit.io/manual/data-pipeline/parsers/configuring-parser#parsers-configuration-file