Skip to content
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

Add support for unix sockets #5531

Open
mikygee opened this issue Dec 7, 2022 · 7 comments
Open

Add support for unix sockets #5531

mikygee opened this issue Dec 7, 2022 · 7 comments
Labels
feature New feature or request

Comments

@mikygee
Copy link

mikygee commented Dec 7, 2022

Hello,
I would like to know if opensearch supports unix sockets.
I might want to use unix sockets along with syslog-ng.
Thank you

@mikygee mikygee added the bug Something isn't working label Dec 7, 2022
@dblock
Copy link
Member

dblock commented Dec 9, 2022

Do you mean using elasticsearch-http() destination of syslog-ng? I'll move this to opensearch-clients repo, and you might just want to give it a try and report back if something doesn't work? I found https://www.syslog-ng.com/community/b/blog/posts/elasticsearch-8-and-syslog-ng that talked about doing it with ES8, but I don't see why it wouldn't also work with OpenSearch.

Are you looking for https://www.syslog-ng.com/community/b/blog/posts/opensearch-and-syslog-ng or something more specific? Reopen if that doesn't work.

@dblock dblock transferred this issue from opensearch-project/OpenSearch Dec 9, 2022
@dblock dblock closed this as completed Dec 9, 2022
@mikygee
Copy link
Author

mikygee commented Dec 10, 2022

Euhhh, where on that page do they talk about unix sockets ?

@dtaivpp
Copy link

dtaivpp commented Dec 10, 2022

@mikygee do you mean Unix sockets for ingesting data into OpenSearch? I am not sure I understand the ask ask either.

@mikygee
Copy link
Author

mikygee commented Dec 10, 2022

Hello,
Yes exactly. You can either communicate with an application using tcp/ip or unix sockets or pipes...
Here I'm asking about unix sockets
https://serverfault.com/questions/124517/what-is-the-difference-between-unix-sockets-and-tcp-ip-sockets
Thank you

@dblock
Copy link
Member

dblock commented Dec 12, 2022

I understand now. I will move this issue back to OpenSearch.

So the short answer is no, not today. OpenSearch doesn't support unix sockets (inter-process), and unless someone can convince us otherwise, or supply an implementation, does not plan to.

OpenSearch inherited from Elasticsearch, and doesn't support unix sockets because that's really geared towards a single-node deployment (same box) as far as I understand. I found some earlier discussions starting with elastic/elasticsearch#35283 and elastic/kibana#1652.

@mikygee What is your scenario? Curious why you're asking for this?

@dblock dblock transferred this issue from opensearch-project/opensearch-clients Dec 12, 2022
@mikygee
Copy link
Author

mikygee commented Dec 12, 2022

Hello,
I read all these links thank you.

Yes I have a single node with syslogng and opensearch on the same machine. Also as the other guys I try to avoid opening tcp sockets as much as possible.
Also you might want to read data without the need of redundancy and make it through unix sockets.

I'm not sure I understand why nobody wants to implement it (except it requires somes work) but what people at Elasticsearch say would also apply to mysql for instance. Unix sockets would be usefull on mysql just in case mysql is deployed on a single node, same for postgresql and many other applications. They all offer unix sockets even it doesn't work in a multinode environnement.

Here I was asking if opensearch supports unix sockets, I now have the answer.
Maybe it would be nice to add this information in the documentation.

Then, I agree that implement this feature requires some work and it might not be the priority of the opensearch projet. However i think this features is more than a "nice to have" feature.

@dblock dblock changed the title [Question] Does opensearch supports unix sockets Add support for unix sockets Dec 13, 2022
@dblock dblock added feature New feature or request and removed bug Something isn't working labels Dec 13, 2022
@dblock
Copy link
Member

dblock commented Dec 13, 2022

Thanks @mikygee.

I reopened this issue as a feature request. Maybe someone (you?) will be motivated to implement it. It's probably not a small feat, but I could be wrong.

Generally we don't document what doesn't exist, but if you think this is useful, please make a PR into the documentation into https://github.com/opensearch-project/documentation-website.

@dblock dblock reopened this Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants