In my scenario, I'm using a fluent-bit (version 1.6.1) filter to identify a particular log pattern and tag (from.solr.out) it.
[FILTER]
Name rewrite_tag
Match test_tag
Rule $msg "^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.*$" from.solr.out false
Emitter_Name re_emitted
Then I modify the record to add a field like below
[FILTER]
Name record_modifier
Match from.solr.out
Record aid 53
Now I need to give a new tag (format.logging) to that modified record which I tried with below code snippet and it doesn't work.
[FILTER]
Name rewrite_tag
Match from.solr.out
Rule $from.solr.out "^.*$" format.logging false
Emitter_Name re_emitted_indexing
What is wrong with that approach?
Is there any better approach/filter to achieve this task?