I'm currently sending logs from Fluentbit in my Kubernetes cluster to Opensearch to one pipeline and this is working fine. However, I'm trying to send logs to Opensearch but depending on a string within the log file name it will output to a different pipeline.
For example, my logfile names contain the words "dev" and "tst" and depending on whether it's "tst" or "dev" I want it to OUTPUT to the Opensearch pipeline that contains the word tst or dev.
Is there a way in fluentbit that this can be done. I'm aware that Tag_Regex can grab fields from the logfile name using regex which I've created the regex for this and should be able to grab this out but wasn't sure how to then apply this in the OUTPUT so that it essentially says if the Tag_Regex matches "dev" use in this OUTPUT or if it matches "tst" using the other OUTPUT.