Is your feature request related to a problem? Please describe.
I'm having several input plugins, for example tags aaa.* bbb.* ccc.* etc
I would like to apply record_modifier to everything but aaa.*
Describe the solution you'd like
<filter /(?!aaa).*/ >
@type record_modifier
....
== or ==
<filter !aaa.**>
@type record_modifier
....
Describe alternatives you've considered
explicitly filter for bbb.** ccc.** etc
Additional context
(?!aaa) doesn't work at the moment because every non-word character is escaped in
https://github.com/fluent/fluentd/blob/master/lib/fluent/match.rb#L113
I see 3 possible, easy to implement solutions:
-
allow regex with a / prefix, string must end with /
<filter /some-regex/>
-
don't escape "(?!" and the corresponding ")"
-
allow pattern like
!aaa.**
and create a regex (?!aaa).* from it
Is your feature request related to a problem? Please describe.
I'm having several input plugins, for example tags aaa.* bbb.* ccc.* etc
I would like to apply record_modifier to everything but aaa.*
Describe the solution you'd like
== or ==
Describe alternatives you've considered
explicitly filter for bbb.** ccc.** etc
Additional context
(?!aaa) doesn't work at the moment because every non-word character is escaped in
https://github.com/fluent/fluentd/blob/master/lib/fluent/match.rb#L113
I see 3 possible, easy to implement solutions:
allow regex with a / prefix, string must end with /
<filter /some-regex/>don't escape "(?!" and the corresponding ")"
allow pattern like
!aaa.**
and create a regex (?!aaa).* from it