in_tail: validate parser if it does not exists
@@ -138,6 +138,9 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *i_ins,
tmp = flb_input_get_property("parser", i_ins);
if (tmp) {
ctx->parser = flb_parser_get(tmp, config);
+ if (!ctx->parser) {
+ flb_error("[in_tail] parser '%s' is not registered", tmp);
+ }
}
#endif
