fluent-bit
fluent-bit copied to clipboard
Modify Tag in Lua Filter
Describe the solution you'd like Currently there is no way to modify an existing tag. If the lua filter allowed you to return the tag that if modified based on logic it would fix our problem. You could create a new tag using a stream but we already use lua for a bunch of other logic and would be nice to allow it there as well to give options.
Describe alternatives you've considered Create a new steam based on a where clause to tag logs differently based on a field.
hi, @mitchellmaler , we have same problem. I have a test. log. want to route different output according log line .
Example
test.log
this line want to output stdout
this line want to output http
fluent-bit.conf
[INPUT]
Name tail
path test.log
[OUTPUT]
Name stdout
[OUTPUT]
Name http
there is only one INPUT, and want to route line1 and line 2 to different output.
We can avoid this problem by set two INPUT with Tag different only. but this is not elegant at all
this is a work in process feature, no fixed ETA
this is a work in process feature, no fixed ETA
@edsiper I use stream processor for a workarround, looks good.
this is a work in process feature, no fixed ETA
@edsiper I use stream processor for a workarround, looks good.
I would really like some more explanation to what, and how, you are doing this. We are currently working on setting up Fluent Bit, at work, and we want to set tags depending on log message format. Is Stream Processors something that could solve that for us?