fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

Unconditional rewrite_tag regardless of record data

Open ryan65 opened this issue 3 years ago • 0 comments

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

ryan65 avatar Aug 07 '22 09:08 ryan65