With old config format, it was possible tu uses wi...
# fluent-bit
t
With old config format, it was possible tu uses wildcard characters :
Copy code
@INCLUDE input_*.conf
With new one (yaml) it seem's not. It will be great to have this capabilitie ?
p
Did you quote the string? Normally that's a YAML special
*
is a special character in YAML, I think it's an alias so I suspect you need to quote it to ensure it is treated as a string
The YAML spec says that it is an alias for an anchor, although the config spec does not support anchors I bet the YAML parser still copes with the syntax: https://yaml.org/spec/1.2.2/#alias-nodes
t
Hello, No, I haven't tested it in YAML, but I'm reading the documentation and I see there's no example. I may have wrongly concluded that it wasn't possible. I'll try when I have some time. If it's possible, it would be nice to add it to the documentation. Thanks, Thomas
p
Sure, the docs are all OSS so feel free to raise a PR for it: https://github.com/fluent/fluent-bit-docs
Note that wildcard inclusion has some potential pitfalls - there is no guarantee of order which can cause problems even with the same config being loaded in different orders: https://github.com/fluent/fluent-bit/issues/5612 It may not affect you right now but it is something to be aware of - that was a fun time debugging pods in K8S for me 🙂
t
Hello, Indeed, we just noticed this with the use of the Add primitive of the modify filter. So we switch to Set.
p
Yeah, never rely on order is a good strategy in general. If you need ordering then make it in the file not by includes - or have specific includes in order