By TheSteed
I have the one click ELK stack setup running on a droplet, but I would also like to use the Elasticsearch part of it for other things as well as Logstash.
When I try to query it remotely though, I get a connection refused on port 9200.
How can I open this up, preferably to only allow access from defined ip addresses?
I have already tried commenting out the network.bind.host line in config and restarting, but this did not solve the issue.
Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The DigitalOcean ELK One-Click binds to localhost by default in /etc/elasticsearch/elasticsearch.yml by setting:
network.host: localhost
This sets both ‘network.bind_host’ and ‘network.publish_host’ So make sure that is commented out as well.
If that still isn’t working after restarting, check to see if there is more than one elasticsearch process. You can use ps aux | grep elasticsearch to do so. I’ve seen a few cases where restarting elasticsearch launches a second process instead and configuration changes don’t take effect as expected. After killing them manually and starting it back up, it should be configured as expected.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.