1.查看logstash日志
journalctl -xe -u logstash
#错误日志
Validation Failed: 1: this action would add [2] shards, but this cluster currently has [999]/[1000] maximum normal shards open
2.原因:
elasticsearch 默认分片数为1000,超过1000不能存储
3.解决办法
在/etc/elasticsearch/elasticsearch.yml中添加如下配置
cluster.max_shards_per_node: 10000