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

Connecting Postgresql database with elasticsearch #989

Closed
limrik opened this issue May 31, 2024 · 3 comments
Closed

Connecting Postgresql database with elasticsearch #989

limrik opened this issue May 31, 2024 · 3 comments
Labels

Comments

@limrik
Copy link

limrik commented May 31, 2024

Hi all, beginner here who just found out about elasticsearch in the past week.

I currently have a postgres database and was wondering how best would I ingest my data to elasticsearch to make search queries (fuzzy search). Do I have to use JDBC and logstash to ingest my data, if so how do I do that? Are there any alternatives because logstash seems like an overkill for the feature I am implementing.

Would appreciate any help thanks!

@antoineco
Copy link
Collaborator

antoineco commented May 31, 2024

docker-elk is a Docker setup to easily use Elastic products together. For support about those products themselves, please refer to https://discuss.elastic.co

Here are a few hints based on similar questions asked by other users: https://github.com/deviantony/docker-elk/issues?q=is%3Aissue+postgresql

This one in particular contains a full example:

@limrik
Copy link
Author

limrik commented May 31, 2024

Thank you for the response @antoineco, after I have connected my postgreSQL database using logstash and JDBC, would that mean that my data would be able to be accessed as an index in elasticsearch and kibana?

@antoineco
Copy link
Collaborator

Correct. It's up to you to determine how the DB data is being translated based on the use case.

For further information please refer to https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html

@limrik limrik closed this as completed May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants