You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting up and running on a Digital Ocean droplet (4 GB RAM) I had multiple problems. Logstash was able to set up an index in Elasticsearch - logstash-2020.12.09-000001 - but Elasticsearch stayed in yellow health status because of an unassigned shard. Querying Elasticsearch with GET /_cat/shards?v showed
However, logstash just can't talk to Elasticsearch. From the logs:
logstash | [2020-12-09T19:06:00,332][WARN ][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://elasticsearch:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::SocketException] Connection refused (Connection refused)"}
What now?! Sshing into the logstash container, I did a number of curl http://elasticsearch:9200/ and only the first one worked:
And Elasticsearch is throwing this exception on boot:
"stacktrace": ["org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.kibana][_doc][space:default]: routing [null]]",
It's probably because I only have 4 GB RAM on my Digital Ocean droplet; https://elk-docker.readthedocs.io/#prerequisites says that it needs A minimum of 4GB RAM assigned to Docker. If this is the case, it should be mentioned in this project's readme.
The text was updated successfully, but these errors were encountered:
After setting up and running on a Digital Ocean droplet (4 GB RAM) I had multiple problems. Logstash was able to set up an index in Elasticsearch -
logstash-2020.12.09-000001
- but Elasticsearch stayed in yellow health status because of an unassigned shard. Querying Elasticsearch withGET /_cat/shards?v
showedNotice
"unassigned_shards": 1,
- the value should be 0 as this is a single node cluster.Doing
showed:
I'm not an Elasticsearch expert, and now I'm having to read documentation on what all of this stuff means, and what to do about it. Eventually I did
Ok great! Elasticsearch is now green!
However, logstash just can't talk to Elasticsearch. From the logs:
What now?! Sshing into the logstash container, I did a number of
curl http://elasticsearch:9200/
and only the first one worked:And Elasticsearch is throwing this exception on boot:
It's probably because I only have 4 GB RAM on my Digital Ocean droplet; https://elk-docker.readthedocs.io/#prerequisites says that it needs
A minimum of 4GB RAM assigned to Docker
. If this is the case, it should be mentioned in this project's readme.The text was updated successfully, but these errors were encountered: