fluent-bit
fluent-bit copied to clipboard
Unconditional rewrite_tag regardless of record data
Hi I would like to unconditionally rewrite the tag , if it matches a certain value (or regex). for example below , if the Tag in the input was set to tag1 tag2 tag3 I would like to change it to Tag_General, I dont care about the actual record data. Is there any existing way to do something like this .? I tried using $TAG in the rule as the key and then use a regex , but caused seg fault.
I am looking for something like this. [FILTER] Name rewrite_tag match_regex (tag1|tag2|tag3) Rule [ignore] [ignore] Tag_General false Emitter_Name re_emitted