<@U096E6G64C8> use fluent-bit.yaml config file ins...
# fluent-bit
d
@dnk use fluent-bit.yaml config file instead of fluent-bit.conf
d
are you suggesting to replace fluent-bit.conf with fluent-bit.yaml files in /etc/fluent-bit and restarting service?
d
Yes, it work for me 🙂
and please be aware that you need to specify parsing definition file too
Copy code
parsers_file: /etc/fluent-bit/parser.yaml
d
so the default systemd service file /usr/lib/systemd/system/fluent-bit.service need to be updated? as of now it has following line that's pointing to .conf. There seems a typo with additional '/' as well. ExecStart=/opt/fluent-bit/bin/fluent-bit -c //etc/fluent-bit/fluent-bit.conf? I also found this github issue related to that question. https://github.com/fluent/fluent-bit/issues/9714
d
Sorry I use Docker container configuration, so I image configuration do start
p
Yeah I've not completed the transition yet as there is an impact to everyone using the old config: https://github.com/fluent/fluent-bit/pull/9837
d
Hi @Pat Even though the transition has not been done yet to avoid the impact for existing users, documentation is referring that as "Standard configuration format as of v3.2." (https://docs.fluentbit.io/manual/administration/configuring-fluent-bit). I cannot find the relevant yaml files in the the source tree matching to default config files, such as "parsers.conf", except for files under tests/internal/data/config_format/yaml. Are the official ones available somewhere that I can grab?
p
Part of the work on that PR is to do it, at the moment there are only legacy config files in there but note you can load/include legacy config from YAML too. Each file is treated independently effectively and converted into the internal config representation so does not matter if it starts as yaml or toml.