diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index cdf70f7f331..65321112759 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -1996,7 +1996,7 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, const char } /* Throw error once per chunk if at least one log key was not found */ - if (log_key_missing == FLB_TRUE) { + if (log_key_missing > 0) { flb_plg_error(ctx->ins, "Could not find log_key '%s' in %d records", ctx->log_key, log_key_missing); }