Hello,
I installed GrayLog on Docker, the installation went well but I don’t understand why it can’t connect to Elasticsearch.
When I test from the terminal everything works:
curl -XGET http://localhost:9200/_cluster/health?pretty=true
{
** “cluster_name” : “docker-cluster”,**
** “status” : “green”,**
** “timed_out” : false,**
** “number_of_nodes” : 1,**
** “number_of_data_nodes” : 1,**
** “active_primary_shards” : 0,**
** “active_shards” : 0,**
** “relocating_shards” : 0,**
** “initializing_shards” : 0,**
** “unassigned_shards” : 0,**
** “delayed_unassigned_shards” : 0,**
** “number_of_pending_tasks” : 0,**
** “number_of_in_flight_fetch” : 0,**
** “task_max_waiting_in_queue_millis” : 0,**
** “active_shards_percent_as_number” : 100.0**
}
However, in Console Portainer I get the following error:
2024-02-13 19:42:01,251 ERROR: org.graylog2.storage.versionprobe.VersionProbe - Unable to retrieve version from Elasticsearch node: Failed to connect to /127.0.0.1:9200. - Connection refused.
2024-02-13 19:42:01,251 INFO : org.graylog2.storage.versionprobe.VersionProbe - OpenSearch/Elasticsearch is not available. Retry #155
Do you have any ideas on how to solve this problem?