我已经参考了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
}对我应该做什么有什么建议吗?我不明白问题出在哪里。
发布于 2014-08-30 20:50:40
我让安装程序运行以下附加功能-
# /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发布于 2014-10-26 00:53:56
我不确定为什么A23的问题被否决了。我也无法运行graylog2-server。关键似乎是将elasticsearch_discovery_zen_ping_unicast_hosts设置为有效的IP集。
当然,在graylog文档中没有提到这是一个应该在graylog2.conf文件中更改的设置:
http://www.graylog2.org/resources/documentation/setup/server
这有点烦人。
https://stackoverflow.com/questions/25581940
复制相似问题