Couldn't read cluster health for indices [graylog_*]

 Hello, guys, when I deploy Graylog with docker, some one error is occurred, and I can't to solve it, I use docker-composed.yml that you can see as follow:

version: ‘2’
services:
mongodb:
image: mongo:3
volumes:
- mongo_data:/data/db
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.5.4
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- “ES_JAVA_OPTS=-Xms512m -Xmx512m”
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
graylog:
image: graylog/graylog:3.0
volumes:
- graylog_journal:/usr/share/graylog/data/journal
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=sdjfkdjvhkdhfkgkjnkebnfh
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_BIND_ADDRESS=127.0.0.1:9000
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 514:514
# Syslog UDP
- 514:514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
volumes:
mongo_data:
driver: local
es_data:
driver: local
graylog_journal:
driver: local

when I run docker-compose up,I received error log
“graylog_1 | 2019-02-25 10:57:28,754 INFO : org.graylog2.periodical.Periodicals - Starting [org.graylog2.periodical.TrafficCounterCalculator] periodical in [0s], polling every [1s].
graylog_1 | 2019-02-25 10:57:28,757 INFO : org.graylog2.periodical.IndexRetentionThread - Elasticsearch cluster not available, skipping index retention checks.
graylog_1 | 2019-02-25 10:57:28,759 ERROR: org.graylog2.indexer.cluster.Cluster - Couldn’t read cluster health for indices [graylog_*] (Could not connect to http://elasticsearch:9200)”
I don’t know how to resolve it

I guess the above is not what you have running - because that is not a valid yml.

please format your posting with markdown and someone might be able to help you

I think you selected the wrong block of text when trying to make that codeblock :slight_smile:

I copyed this yml from http://docs.graylog.org/en/3.0/pages/installation/docker.html#persisting-data,but I run it error

The hold yml as you can see as below

http://docs.graylog.org/en/3.0/pages/installation/docker.html#persisting-data

The docker-compose from the documentation is working like a charm in my environment.

You need to debug yours why that is not working - the error is more docker related than Graylog I guess and with the little to nothing information it is hard to help you.

1 Like

I try to reinstalled my docker, and I run the docker-compose, but the error is go on, maybe it caused in my environment, my environment is centos 7 in aws, can you tell me what your environment?

my local mac …

if you run in AWS you might want to bind your Graylog HTTP interface to your Servers IP and not localhost … then if will work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.