Is your feature request related to a problem? Please describe.
If we have one input, for example systemd, and two outputs and we cannot filter the output based on a tag, and we need to send all data to one of the output but only some data to the other output based on some input field.
Describe the solution you'd like
Allow to rewrite tags in filters.
For example in the lua filter we can return the tag.
function cb_print(tag, timestamp, record)
return code, tag, timestamp, record
end
or without breaking the existing configurations, put at the end and make optional
function cb_print(tag, timestamp, record)
return code, timestamp, record, tag
end
Describe alternatives you've considered
Duplicate the inputs in the configuration, but in some cases can cause a high overhead
Additional context
Is your feature request related to a problem? Please describe.
If we have one input, for example systemd, and two outputs and we cannot filter the output based on a tag, and we need to send all data to one of the output but only some data to the other output based on some input field.
Describe the solution you'd like
Allow to rewrite tags in filters.
For example in the lua filter we can return the tag.
or without breaking the existing configurations, put at the end and make optional
Describe alternatives you've considered
Duplicate the inputs in the configuration, but in some cases can cause a high overhead
Additional context