diff --git a/plugins/filter_parser/filter_parser.c b/plugins/filter_parser/filter_parser.c index 8986308f8a2..11bf71f7e53 100644 --- a/plugins/filter_parser/filter_parser.c +++ b/plugins/filter_parser/filter_parser.c @@ -367,6 +367,10 @@ static int cb_parser_filter(const void *data, size_t bytes, encoder_result = flb_log_event_encoder_commit_record(&log_encoder); } + if (encoder_result != FLB_EVENT_ENCODER_SUCCESS) { + flb_plg_error(ctx->ins, "log event encoder error : %d", encoder_result); + } + flb_free(append_arr); append_arr = NULL; }