首页 > 其他分享 >Logstash报错: Could not index event to Elasticsearch

Logstash报错: Could not index event to Elasticsearch

时间:2023-09-25 11:11:08浏览次数:34  
标签:index Could shards event cluster 报错 Logstash

Logstash报错: Could not index event to Elasticsearch

 

一、环境说明
Logstash 7.3
ElasticSearch 7.3
二、现象
logstash/logs/logstash-plain.log大量警告:
Validation Faile
d: 1: this action would add [1] total shards, but this cluster currently has [1000]/[1000] maximum shards op
en;


三、原因
elasticsearch7版本及以上的,默认只允许1000个分片,因为集群分片数不足引起的。

四、解决
4.1 临时解决方案(重启ES将失效)
在kibana -> 开发者工具 -> Console页签下执行如DSL下语句

PUT /_cluster/settings
{
"transient": {
"cluster": {
"max_shards_per_node":10000
}
}

1
2
3
4
5
6
7
8
4.2 永久解决方案
在kibana -> 开发者工具 -> Console页签下执行如DSL下语句

PUT /_cluster/settings
{
"persistent": {
"cluster": {
"max_shards_per_node":10000
}
}
————————————————
版权声明:本文为CSDN博主「懵懂无知的蜗牛」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_25646191/article/details/111860572

标签:index,Could,shards,event,cluster,报错,Logstash
From: https://www.cnblogs.com/iancloud/p/17727494.html

相关文章

  • 解决 IDEA classpath.index 重复问题
    今天不知为何开始报错EntryWEB-INF/classes/classpath.indexisaduplicatebutnoduplicatehandlingstrategyhasbeenset.,大约是由于我把Gradle迁移到了Kotlin导致的经过一番搜索,发现问题出在IDEA和Gradle均会在build->classes下生成classpath.index这个文......
  • ## Could not find a working installation of Boost.
     001、问题 002、解决方法(base)[[email protected]]#yum-yinstallboostboost-devel(base)[[email protected]]#yum-yinstallgcc-c++.x86_64gperf 参考:https://code84.com/754823.html ......
  • python教程:解决报错:ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIRE
    从以下两种途径来解决。清除缓存这个错误通常表示安装的软件包与要求文件中的哈希值不匹配。这可能是由于要求文件被更改或软件包被篡改引起的。为了解决这个问题,你可以尝试以下几个步骤:清理缓存:运行以下命令清理pip缓存:pipcachepurge```更新要求文件:如果你更新了软件包的版本......
  • IntelliJ IDEA中执行@Test单元测试时报错Class not found: "..."终极办法
    之前也出现过在编译时找不到测试类的问题,但之前的那篇博文,并不是终极办法IntelliJIDEA中执行@Test单元测试时报错Classnotfound:"..."Emptytestsuite 问题:出现类似问题,普遍时同然就报错了,原因是使用IDEA,从别人的Git上拉取代码后,别人把一些idea的配置文件也传上了,到时更新......
  • Could not open client transport with JDBC Uri: jdbc:hive2://node1:10000: java.n
    今天发现连接beeline是时候连接不上,不应该啊昨晚还可以的qaq  破案了,我启动了metastore之后忘记去启动hiveserver2hiveserver2都没启动能连上就怪了 一定一定要记得启动顺序!!!hadoop+metastore+hiveserver2+beeline ......
  • PbootCMS附件上传报错UNKNOW: Code: 8192; Desc: stripos()
    PbootCMS附件上传报错UNKNOW:Code:8192;Desc:stripos(),具体显示如下图所示:解决方法:打开/core/function/file.php,找到以下代码:1if (stripos($types,$ext)!== false)改为如下代码:1if (stripos($types,chr($ext))!== false)......
  • 在操作过程中遇到Attempting to operate on hdfs namenode as root报错
    在操作过程中遇到Attemptingtooperateonhdfsnamenodeasroot报错HDFS格式化后启动dfs出现以下错误:[root@hadoop101sbin]#start-dfs.shStartingnamenodeson[hadoop101]ERROR:AttemptingtooperateonhdfsnamenodeasrootERROR:butthereisnoHDFS_NAMENO......
  • [已解决]报错: Error response from daemon: conflict
    报错内容:Errorresponsefromdaemon:conflict:unabletodeletef5b6ef70d79b(mustbeforced)-imageisbeingusedbystoppedcontainer0a740a8a885c解决办法:先删除容器,再删除镜像删除所有已停止的容器dockerrm$(dockerps-a-q)删除所有镜像dockerrmi$(do......
  • git commit 报错:找不到 python 3.8
    到这个问题的原因可能有很多,这里只是记录下针对我遇到这这跟题的原因及解决方法问题描述执行gitcommit命令,报错/usr/bin/env:‘python3.8’:Nosuchfileordirectory问题分析gitcommit命令本身不需要python,找不到python多半配置了hook去进行提交去的检查,例......
  • 告警日志出现"which is different from the number of indexes 4 defined in the MySQ
    问题描述:告警日志出现"whichisdifferentfromthenumberofindexes4definedintheMySQL"报错,如下所示:数据库:MySQL5.7.211、告警日志########################################ErrorDetail########################################23092121:30:00[ERROR]Tablet......