diff --git a/plugins/out_s3/s3.c b/plugins/out_s3/s3.c index b7475cbc8c6..a3ebfc8e7bb 100644 --- a/plugins/out_s3/s3.c +++ b/plugins/out_s3/s3.c @@ -1118,12 +1118,12 @@ static int upload_data(struct flb_s3 *ctx, struct s3_file *chunk, if (chunk) { chunk->failures += 1; if (chunk->failures > ctx->ins->retry_limit){ - s3_retry_warn(ctx, tag, chunk->input_name, create_time, FLB_FALSE); + s3_retry_warn(ctx, tag, chunk->input_name, chunk->create_time, FLB_FALSE); s3_store_file_delete(ctx, chunk); return -2; } else { - s3_retry_warn(ctx, tag, chunk->input_name, create_time, FLB_TRUE); + s3_retry_warn(ctx, tag, chunk->input_name, chunk->create_time, FLB_TRUE); s3_store_file_unlock(chunk); return -1; }