Skip to content

Commit a18c5b9

Browse files
respond to feedback
1 parent 7209a5c commit a18c5b9

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

plugins/out_es/es.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -824,8 +824,7 @@ static void cb_es_flush(struct flb_event_chunk *event_chunk,
824824
struct flb_http_client *c;
825825
flb_sds_t signature = NULL;
826826
int compressed = FLB_FALSE;
827-
flb_sds_t header_buffer;
828-
flb_sds_t header_line;
827+
flb_sds_t header_line = NULL;
829828

830829
/* Get upstream connection */
831830
u_conn = flb_upstream_conn_get(ctx->u);
@@ -1123,7 +1122,7 @@ static struct flb_config_map config_map[] = {
11231122
{
11241123
FLB_CONFIG_MAP_STR, "http_api_key", NULL,
11251124
0, FLB_TRUE, offsetof(struct flb_elasticsearch, http_api_key),
1126-
"API key for Elasticsearch"
1125+
"Base-64 encoded API key credential for Elasticsearch"
11271126
},
11281127

11291128
/* HTTP Compression */

plugins/out_es/es_conf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ struct flb_elasticsearch *flb_es_conf_create(struct flb_output_instance *ins,
143143
#endif
144144
char *cloud_port_char;
145145
char *cloud_host = NULL;
146-
char *http_api_key = NULL;
147146
int cloud_host_port = 0;
148147
int cloud_port = FLB_ES_DEFAULT_HTTPS_PORT;
149148
struct flb_uri *uri = ins->host.uri;

tests/runtime/out_elasticsearch.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ static void cb_check_http_api_key(void *ctx, int ffd,
1212
size_t res_size, void *data)
1313
{
1414
char *api_key = data;
15-
char expected_header[256];
16-
17-
snprintf(expected_header, sizeof(expected_header), "ApiKey %s", api_key);
1815

1916
TEST_CHECK(api_key != NULL);
2017
TEST_CHECK(strlen(api_key) > 0);

0 commit comments

Comments
 (0)