filter_rewrite_tag: fix Match aborting issue
We should take care Match and Rule to determine if it causes infinite loop.
Rule is depended on incoming record and we can't determine on init.
Fluent-bit only reports warning if Match may cause infinite loop.
@@ -215,9 +215,7 @@ static int cb_rewrite_tag_init(struct flb_filter_instance *ins,
return -1;
}
if (is_wildcard(ins->match)) {
- flb_plg_error(ins, "'Match' causes infinite loop. abort.");
- flb_free(ctx);
- return -1;
+ flb_plg_warn(ins, "'Match' may cause infinite loop.");
}
ctx->ins = ins;
ctx->config = config;
