Skip to content

Commit b7cd81b

Browse files
committed
pipeline: outputs: es: tests for upstream node configuration properties
Signed-off-by: Marat Abrarov <[email protected]>
1 parent 333d579 commit b7cd81b

File tree

3 files changed

+393
-3
lines changed

3 files changed

+393
-3
lines changed

plugins/out_es/es.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int cb_es_init(struct flb_output_instance *ins,
642642
return 0;
643643
}
644644

645-
static struct flb_elasticsearch_config *flb_elasticsearch_target(
645+
struct flb_elasticsearch_config *flb_elasticsearch_target(
646646
struct flb_elasticsearch *ctx, struct flb_upstream_node **node)
647647
{
648648
struct flb_elasticsearch_config *ec;

plugins/out_es/es.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include <monkey/mk_core/mk_list.h>
2424
#include <fluent-bit/flb_sds.h>
25+
#include <fluent-bit/flb_upstream_node.h>
2526

2627
#define FLB_ES_DEFAULT_HOST "127.0.0.1"
2728
#define FLB_ES_DEFAULT_PORT 9200
@@ -164,4 +165,7 @@ struct flb_elasticsearch {
164165
struct flb_output_instance *ins;
165166
};
166167

168+
struct flb_elasticsearch_config *flb_elasticsearch_target(
169+
struct flb_elasticsearch *ctx, struct flb_upstream_node **node);
170+
167171
#endif

0 commit comments

Comments
 (0)