Hello, I am using fluent-bit V4.0 with yaml config...
# fluent-bit
z
Hello, I am using fluent-bit V4.0 with yaml configurations. My design is to have one common.yml files with multiple different separate config files in separate sub-directories. However, I found that I am only able to use the includes section with a list of full paths in single quotes? I want to either use environmental variables or partial paths to the separate config files; ideally just partial paths. For the following yaml file:
Copy code
service:
  flush: 5                    
  log_level: debug              
  storage_sync: full          
  storage.backlog.mem_limit: 5M 


includes:
  -  './common/messages.yml'
  -  './common/top.yml'

pipeline:
  outputs:
    - name: stdout
      match: "*"
I get the following error:
Copy code
Fluent Bit v4.0.3
* Copyright (C) 2015-2025 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

______ _                  _    ______ _ _             ___  _____ 
|  ___| |                | |   | ___ (_) |           /   ||  _  |
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   __/ /| || |/' |
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / / /_| ||  /| |
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V /\___  |\ |_/ /
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/     |_(_)___/ 


[2025/06/26 14:23:56] [error] [/private/tmp/fluent-bit-20250530-6528-yhw7cr/fluent-bit-4.0.3/src/config_format/flb_cf_yaml.c:2859 errno=2] No such file or directory
[2025/06/26 14:23:56] [error] [config] including file './common/top.yml' at ././common/messages.yml:21
[2025/06/26 14:23:56] [error] yaml error
[2025/06/26 14:23:56] [error] configuration file contains errors, aborting.
If I add an environment variable tabs with the following syntax:
Copy code
env:
   CONFIG: 'path/to/conf' 
service:
  flush: 5                    
  log_level: debug              
  storage_sync: full          
  storage.backlog.mem_limit: 5M 


includes:
   -  ${CONFIG}common/ims.yml

pipeline:
  outputs:
    - name: stdout
      match: "*"
I get the following error:
Copy code
[2025/06/26 14:27:16] [error] [/private/tmp/fluent-bit-20250530-6528-yhw7cr/fluent-bit-4.0.3/src/config_format/flb_cf_yaml.c:2859 errno=2] No such file or directory
[2025/06/26 14:27:16] [error] [config] including file '${CONFIG}common/ims.yml' at common.yml:24
[2025/06/26 14:27:16] [error] yaml error
[2025/06/26 14:27:16] [error] configuration file contains errors, aborting.
Also it seems like I can use partial paths only if there is one? Any help is greatly appreciated!