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 Nov 29, 2024
1 parent 9b19775 commit 21acd96
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 @@ -173,4 +174,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 21acd96

Please sign in to comment.