We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb74bd8 commit 5779614Copy full SHA for 5779614
plugins/out_es/es.c
@@ -890,7 +890,8 @@ static void cb_es_flush(struct flb_event_chunk *event_chunk,
890
flb_http_basic_auth(c, ctx->cloud_user, ctx->cloud_passwd);
891
}
892
else if (ctx->http_api_key) {
893
- header_line = flb_sds_create_size(48);
+ // 7 for ApiKey + space
894
+ header_line = flb_sds_create_size(strlen(ctx->http_api_key)+7);
895
if (header_line == NULL) {
896
flb_plg_error(ctx->ins, "failed to format API key auth header");
897
goto retry;
0 commit comments