-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
es_out: support Upstream Servers #1560
base: master
Are you sure you want to change the base?
Conversation
…m servers configuration Signed-off-by: Clara Pohland <[email protected]>
41414f5
to
b08b568
Compare
…m servers configuration Signed-off-by: Clara Pohland <[email protected]>
Remove unnecessary code to set index and type for the simple configuration.
Various fixes to adopt the out_es_ha_support branch for master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please test it rebasing on top of GIT master ?
@@ -32,7 +32,7 @@ | |||
#define FLB_ES_DEFAULT_TAG_KEY "flb-key" | |||
#define FLB_ES_DEFAULT_HTTP_MAX "4096" | |||
|
|||
struct flb_elasticsearch { | |||
struct flb_elasticsearch_config { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this represents a target elasticsearch node I will propose struct flb_elasticsearch_node
can you please test it rebasing on top of GIT master ? |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Hi @claralui, @edsiper and @PettitWesley, This is a really needful feature (without which my team cannot use Fluent Bit). Are there any plans for this pull request? Is there something I can do to help get it merged? Not sure I can help to resolve merge conflicts in this pull request, because source branch doesn't belong to my repository. Thank you. |
Hi colleagues, Just FYI, I'm working on mabrarov/fluent-bit@master...feature/out_es_upstream_support (current state - it builds successfully, but I never tried to run it), which is based (idea, some parts of the code) on this pull request and on Forward output plugin. The plan is:
The 2nd change may need to go into a dedicated pull request to reduce size of pull request. IMHO, the most of use cases when support of Upstream Servers is needed in Elasticsearch output plugin should be covered by the 1st change. Thank you. |
Hi, |
Hi @claralui, FYI, there 2 known to me workarounds:
My team is going with 1st workaround for now (because we already have Fluentd DaemonSet in OpenShift → Fluentd → Elasticsearch cluster), but ideally it would be great to avoid extra hop b/w Fluent Bit DaemonSet and Elasticsearch cluster. Thank you for update. |
FYI, I have successfully completed manual testing of happy path on feature/out_es_upstream_support branch for single node and for 3 node Elasticsearch clusters. Refer to https://github.com/mabrarov/elastic-stack for Docker Compose projects for Elasticsearch clusters and for Fluent Bit configurations. |
FYI part 2 from that comment is ready in feature/out_es_upstream_support_extended branch. So far tested manually happy path only. |
Opened pull request #7608 for Elasticsearch plugin changes and fluent/fluent-bit-docs#1143 for respective documentation changes. Please note that pull request #7608 implements part 2 from that comment, i.e. covers more than this pull request and fixes existing tests for Elasticsearch output plugin (which required changes in test supporting part of Fluent Bit engine). |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This should enable Upstream feature (https://docs.fluentbit.io/manual/configuration/upstream_servers) support for the Elasticsearch Output Plugin.
It was tested in a local setup with two Elasticsearch instances (es-1 & es-2).
Here is some example output when only es-1 is available: