[Q&A] config from fluent-package 5 errors on 6 with an alleged duplicate label #5100
-
What is the problem?I'm testing upgrading a few systems from fluent-package 5.0.7 to fluent-package 6.0.0. I haven't made any configuration changes (yet), just upgraded the package and reinstalled the plugins for the new version. The config works fine on fluent-package 5, but on 6, fluentd refuses to start up, saying I've tried some simple config edits to remove the label and match only on tags, but I then get similar problems with other label/match pairs that aren't shown in the below config. (I omitted a couple of my included config files, to try to simplify this test case.) I don't see any sort of include repeats/loops (and I'd hope that fluentd would know not to do that anyway). Are there any changes in how fluentd 1.19.0 parses configs that might have made this configuration invalid, or is this a possible regression? Describe the configuration of FluentdWhen fluentd is started via systemd it reads in /etc/fluent/fluentd.conf:
The include above pulls in a few *.conf files from conf.d. The first, alphabetically, is
The second,
There are two other files alphabetically after the above, which I've omitted here to simplify the test case. One pulls in events from the system journal and sends them to a SIEM; the other tails a couple of log files, and forwards that to another destination. Those files do exhibit a similar issue to the ones above, in that one of them adds a label to events, then uses a section to match that label, and if the above are modified to remove the @ARES_JSON_TCP label, fluentd still won't start because it says a label in those files appears twice. Describe the logs of Fluentdfluent-package 6 startup logs:
Environment- Fluentd version: 1.19.0
- Fluent Package version: 6.0.0
- Operating system: Ubuntu 24.04.1 LTS
- Kernel version: 6.8.0-1032-aws #34-Ubuntu SMP Fri Jun 27 19:10:36 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@dsmith4-godaddy <system>
config_include_dir ""
</system>
fluent-package v6.0.0 reads config files under config_include_dir. |
Beta Was this translation helpful? Give feedback.
-
That seems to have worked. (It exposed a different possible issue with fluentd 1.19, but I'll open a different discussion for that if needed.) Thank you for the help! |
Beta Was this translation helpful? Give feedback.
@dsmith4-godaddy
Sorry for the trouble.
Please try the following setting.
fluent-package v6.0.0 reads config files under config_include_dir.
The default value is
/etc/fluent/conf.d
.If a user manually creates and uses that directory, those config files will be included duplicatedly.