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
How to connect my postges database with logstash #972
Comments
@nhluan all containers of the ELK stack are inside their own bridge network named "elk": Lines 109 to 111 in f14c103
For them to be able to communicate with other containers, it is necessary to share a network. If your
You can connect your For this, start by listing the available networks on your host:
Then list your containers to identify the
Finally, attach the
After that, you should be able to change your Logstash configuration to use the following connection string: |
Thank you, @antoineco for your response. By the way, I am encountering an issue when running my Docker compose with an ELK source using the new configuration I presented. (my structure based on your ELK source and make sure I don't change anything about position or something). And it's giving me an error indicating that it can't my configuration with logstash postgres. Any insight on this? (my error: |
Problem description
I cannot understand how to my postgres database which is running by container to connect with logstash and then, they can display on the kibana. So, when I set up my logstash.conf and run them. I have received the error =>
[2024-04-05T06:31:40,600][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
And my target is how to connect postgres database with logstash with this source.Extra information
I have not change anything file or structure what I have cloned from this repository.
Stack configuration
Docker setup
Container logs
The text was updated successfully, but these errors were encountered: