-
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
Enhancement request - Please provide an OpenSearch destination #11738
Comments
One way to get this going in the meantime is to use the AWS sigv4-proxy to sign the requests to OpenSearch. It's the same workaround outlined in #6204, so it's not ideal but it does work. |
@jszwedko I suppose we need some discussion here. OpenSearch is getting more and more popular in the community for different reasons, so I think OpenSearch is kinda important for Vector. If we agree to support OpenSearch, the main remaining question here - how it should be implemented in Vector. I suggest create dedicated source/sink for OpenSearch, even if it will share right now a lot of codebase with an existing ElasticSearch source/sink. In the future I guess OpenSearch and ElasticSearch will diverge more and more. What do you think? |
I'm open to creating a new |
Forgive me for not knowing what's under the hood - but please know that elastic supplied libraries after 7.14 have be modified to specifically not work with OpenSearch. So if you are using these libraries - it would be best to start diverging sooner than later. |
Ah, yes, meant to mention in my other comment that we don't rely on any SDKs for Elasticsearch but just make HTTP calls directly using the |
Hmmm, in this case I tend to agree with @jszwedko approach to create |
Eventually there will be feature divergence for ingestion. When that the time comes - the OpenSearch project does maintain this library https://github.com/opensearch-project/opensearch-rs. The OpenSearch maintainers would love to hear your feedback on it and/or have you speak at one of their meetups: https://www.meetup.com/opensearch/ EDIT: |
@ryn9 you are right - eventually these projects will diverge a lot. We right now could start with already implemented |
@ryn9 by the way, did you already try to use |
Apologies - I have not tried for a while - but I believe it was working when I last tested against an OpenSearch 1.x release |
I use the existing |
@jszwedko when the elasticsearch output code is updated is it also being tested against opensearch? I see that in 0.26 the following change was made to vector: Opensearch 2.x mimics the Elasticsearch 7.x line protocol - but like Elasticsearch 8.x - will not accept _type. |
Setting I see OpenSearch has a docker image, https://hub.docker.com/r/opensearchproject/opensearch, so it seemingly wouldn't be too hard to add it to our integration tests to ensure continued compatibility. |
For anyone stumbling upon this thread ... writing back to confirm that 0.26 is suppressing _type to opensearch 2.3, and successfully pushing messages. live with a config that looks like this..
|
Hi, I have a AWS opensearch cluster on AWS which is having fine grained access control enabled which is having credential and EKS cluster which is having vector installed so implemented the below syntax in configmap of vector to get the logs on opensearch. Is my syntax is correct for this implementation as I cannot able to see any index or logs on opensearch. |
is it possible to pass the username and password in configmap as an secret , because it is not good idea to keep the credential directly into configmap |
I think you can use normal Kubernetes secrets mechanisms unless I'm missing something. |
I have another question |
https://vector.dev/docs/reference/configuration/sinks/elasticsearch/#bulk.index |
Hello , i have configured vector in kubernetes cluster and it is taking kubernetes logs as a source and sinks as a elasticsearch, so just wanted to know is logs transferring to elasticsearch instantly ? |
Technically, Vector won't be sending it instantly, but it should be close enough given the above configuration. The default batch timeout for elasticsearch is just one second, after which it would send anything that has been queued up. If you run vector with debugging enabled, do you see requests being sent out to the elasticsearch server? |
can we create multiple index from this like: Is it possible to have multiple index? |
You need to create multiple sinks, each with their own index definition |
As @ryn9 pointed out, that's not a valid configuration. However I don't understand what you're trying to do with the two indices that the template fields don't already do. Any unique set of Additionally, please open a new Discussion for questions unrelated to the original issue - thanks. |
Adding this issue as a difference between OS and ES we need to handle: |
I'm using the elastic sink with the v7 api definition. It does work, but we would welcome an specific opensearch sink as well :) |
A note for the community
Use Cases
Elastic made it latest libraries not work with OpenSearch
Please make a dedicated OpenSearch destination using the latest OpenSearch libraries.
Attempted Solutions
n/a
Proposal
Elastic made it latest libraries not work with OpenSearch
Please make a dedicated OpenSearch destination using the latest OpenSearch libraries.
References
Please have a look the blog post about client libraries available for OpenSearch: https://opensearch.org/blog/community/2021/08/community-clients/
Version
n/a
The text was updated successfully, but these errors were encountered: