Skip to content

Commit

Permalink
pipeline: outputs: es: tests for upstream node configuration properties
Browse files Browse the repository at this point in the history
Signed-off-by: Marat Abrarov <[email protected]>
  • Loading branch information
mabrarov committed Jul 7, 2023
1 parent 333d579 commit b7cd81b
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/out_es/es.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static int cb_es_init(struct flb_output_instance *ins,
return 0;
}

static struct flb_elasticsearch_config *flb_elasticsearch_target(
struct flb_elasticsearch_config *flb_elasticsearch_target(
struct flb_elasticsearch *ctx, struct flb_upstream_node **node)
{
struct flb_elasticsearch_config *ec;
Expand Down
4 changes: 4 additions & 0 deletions plugins/out_es/es.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <monkey/mk_core/mk_list.h>
#include <fluent-bit/flb_sds.h>
#include <fluent-bit/flb_upstream_node.h>

#define FLB_ES_DEFAULT_HOST "127.0.0.1"
#define FLB_ES_DEFAULT_PORT 9200
Expand Down Expand Up @@ -164,4 +165,7 @@ struct flb_elasticsearch {
struct flb_output_instance *ins;
};

struct flb_elasticsearch_config *flb_elasticsearch_target(
struct flb_elasticsearch *ctx, struct flb_upstream_node **node);

#endif
Loading

0 comments on commit b7cd81b

Please sign in to comment.