我已经提到Setup a graylog2 server with elasticsearch in a vagrant machine并且我有正确版本的ElasticSearch。
我还根据tutorial为Graylog2和ElasticSearch添加了正确的选项。
ERROR: Could not successfully connect to ElasticSearch. Check that your cluster state is not RED and that ElasticSearch is running properly.
Need help?
* Official documentation: http://support.torch.sh/help/kb
* Mailing list: http://support.torch.sh/help/kb/general/forums-mailing-list
* Issue tracker: http://support.torch.sh/help/kb/general/issue-trackers
* Commercial support: http://www.torch.sh/
But we also got some specific help pages that might help you in this case:
* http://support.torch.sh/help/kb/graylog2-server/configuring-and-tuning-elasticsearch-for-graylog2-v0200
Terminating. :(
我跑步时仍然遇到错误:
sudo java -jar /opt/graylog2-server/graylog2-server.jar --debug
我还检查过ElasticSearch是否正常运行 -
central@central:~$ curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true'
{
"cluster_name" : "graylog2",
"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
}
有关我应该做什么的任何建议?我不明白问题所在。
答案 0 :(得分:12)
我让设置运行以下添加 -
# /etc/elasticsearch/elasticsearch.yml
cluster.name: graylog2
node.master: true
node.data: true
bootstrap.mlockall: true
ES_HEAP_SIZE: 8192 (@ 16GB memory)
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicasts.hosts: [“127.0.0.1”, "SERVER IP"]
# /etc/graylog2.conf
elasticsearch_discovery_zen_ping_multicast_enabled = false
elasticsearch_discovery_zen_ping_unicast_hosts = IP_ARR:9300
答案 1 :(得分:3)
我不确定为什么A23的问题被低估了。我也无法让graylog2-server运行。关键似乎是将elasticsearch_discovery_zen_ping_unicast_hosts设置为有效的IP集。
当然,这在graylog docs中没有提到应该在graylog2.conf文件中更改的设置:
http://www.graylog2.org/resources/documentation/setup/server
这有点烦人。