Skip to content

Commit

Permalink
Update es.c
Browse files Browse the repository at this point in the history
update es response condition

Signed-off-by: gorilla-go <[email protected]>
  • Loading branch information
gorilla-go authored May 24, 2024
1 parent cfdd0ac commit 2edc709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_es/es.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static int elasticsearch_error_check(struct flb_elasticsearch *ctx,
}

/* Lookup error field */
if (strstr(c->resp.payload, "\"errors\":false,\"items\":[")) {
if (strstr(c->resp.payload, "\"errors\":false")) {
return FLB_FALSE;
}

Expand Down

0 comments on commit 2edc709

Please sign in to comment.