部署ELK時候,logstash啟動報錯
Sending logstash logs to /var/log/logstash.log.
Exception in thread ">output" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]
at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(org/elasticsearch/action/support/master/TransportMasterNodeOperationAction.java:180)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(org/elasticsearch/cluster/service/InternalClusterService.java:492)
at java.util.concurrent.ThreadPoolExecutor.runWorker(java/util/concurrent/ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(java/util/concurrent/ThreadPoolExecutor.java:615)
at java.lang.Thread.run(java/lang/Thread.java:722)
檢查EA配置,發現系修改了Cluster名字所致,修改Logstash Output屬性:
elasticsearch {
host => "127.0.0.1"
port => 9300
cluster => "us-elasticsearch"
}
增加cluster屬性,重啟即可!
