ELK 问题整理
kibana创建索引模式失败的问题
点击创建索引模式无反应
1、查看磁盘空间是否够用,当磁盘空间不足时,.kibana是没有权限写入的,这个时候根据自身情况处理看如何减少磁盘使用量。
2、在kibana界面的devtools中输入如下命令:
GET .kibana/_settings
如果 index.blocks.read_only_allow_delete
为true,则设置index.blocks.read_only_allow_delete
为 false
或者为 null
执行如下 命令
ElasticSearch 集群的默认最大分片数是1000
方法一、Kiabana的Dev Tools 中执行如下命令
PUT /_cluster/settings
{
"persistent": {
"cluster": {
"max_shards_per_node":900000
}
}
}
校验是否生效
GET _cluster/settings?pretty
方法二、修改 ElasticSearch 目录 /config/elasticsearch.yml
的配置文件
cluster.max_shards_per_node: 900000
修改每个分片副本个数
GET _all/_settings
GET logstash*
PUT logstash*/_settings
{
"index": {
"number_of_replicas": 0
}
}