-
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 configuration #2653
Conversation
Sample fluent bit configuration file:
The new configuration required is the key Upstream.
|
Valgrind debug output without Upstream servers configured: |
Upstream Servers configuration file:
|
Valgrind debug output with Upstream servers configured: |
This MR is based upon the work made by claralui in MR #1560 |
@edsiper In review comment on claralui's MR #1560 you made the review below:
Link to comment on MR #1560 |
d41329c
to
9062cea
Compare
assigning to @fujimotos for review |
plugins/out_es/es.c
Outdated
flb_output_set_context(ins, ctx); | ||
|
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.
L523 has a trailing whitespace. Remove it.
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.
Fixed by removing trailing spaces.
@edsiper @sirwio I tested this patch and the basic functionality was working. I left a few inline review comments to the diff. I'm okay with merging this patch
This sirwio's comment essentially means that [UPSTREAM]
name forward-balancing
[NODE]
name node-1
host 127.0.0.1
port 9200
buffer_size -1 So this patch has a missing piece/caveat. That being said, I think it is still reasonable |
Yes the idea was to get the patch approved with this incomplete functionality. In my current use cases I have no need to have configurations that differ between the elastic search nodes. I can however imagine that such could be required for some users. |
Supporting Upstream Servers configuration for the Elasticsearch output plugin
Adding support for Upstream Servers for the Elasticsearch ouput plugin.
Implmentation mimics the support for Upstream Servers already present
in the Forward output plugin.
There is no additional node configuration keys required by the plugin
for the Upstream Servers configuration.
The change will require the documentation to be updated e.g. to mention that the out_es
plugin does have an additional key Upstream that shall provide the absolute path for the
Upstream configuration file. Documentation need also be added to the Upstream Servers
documentation to mention that the Elasticsearch output plugin is now supported.
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
Documentation
Update Elasticsearch output plugin documenation with Upstreams key information
Update Upstreams Servers documentation to mention support for Elasticsearch is available.
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.