当前位置:网站首页>ES日志报错赏析-Limit of total fields
ES日志报错赏析-Limit of total fields
2022-07-07 11:47:00 【ES小助理】
报错现象
[o.e.a.a.i.m.p.TransportPutMappingAction] [------nodeid-------] failed to put mappings on indices [[[--------IndexName---------]]], type [doc]
java.lang.IllegalArgumentException: Limit of total fields [1000] in index [--------IndexName---------] has been exceeded
at org.elasticsearch.index.mapper.MapperService.checkTotalFieldsLimit(MapperService.java:656) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:537) ~[elasticsearch-6.8.2.jar:6.8.2]
at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:415) ~[elasticsearch-6.8.2.jar:6.8.2]报错解析
此问题为写入时报错,ES中默认限制单个索引1000个字段,因为索引中定义太多的字段会导致 mapping 的激增,从而引起内存的错误和难以恢复的情况。
此问题常见于日志拆分后,自动更新更新mapping,由于日志拆分逻辑异常,导致很多异常字段被误认为是新字段,导致索引maaping字段激增大于1000.导致更新报错。
解决方案
1-调整索引setting,临时增大字段数限制,下述方式中my_index为报错的index名。
PUT my_index/_settings
{
"index.mapping.total_fields.limit": 2000
}
此处设置为2000 最大索引2-检查业务侧导致字段数激增的原因,减少单个索引字段数量。
边栏推荐
- clion mingw64中文乱码
- PostgreSQL array type, each splice
- Navicat运行sql文件导入数据不全或导入失败
- Vscade editor esp32 header file wavy line does not jump completely solved
- Server to server (S2S) event (adjust)
- 如何让join跑得更快?
- Realize the IP address home display function and number home query
- cmake 学习使用笔记(一)
- 干货|总结那些漏洞工具的联动使用
- 2022-7-6 初学redis(一)在 Linux 下下载安装并运行 redis
猜你喜欢

Xshell connection server changes key login to password login

cmake 学习使用笔记(一)

xshell连接服务器把密钥登陆改为密码登陆

ESP32 ① 编译环境

2022-7-7 Leetcode 34. Find the first and last positions of elements in a sorted array

2022-7-7 Leetcode 34.在排序数组中查找元素的第一个和最后一个位置

Ways to improve the performance of raspberry pie

2022-7-7 Leetcode 844.比较含退格的字符串

Navicat运行sql文件导入数据不全或导入失败
![供应链供需预估-[时间序列]](/img/2c/82d118cfbcef4498998298dd3844b1.png)
供应链供需预估-[时间序列]
随机推荐
ESP32构解工程添加组件
【等保】云计算安全扩展要求关注的安全目标和实现方式区分原则有哪些?
Distributed transaction solution
Split screen bug notes
[etc.] what are the security objectives and implementation methods that cloud computing security expansion requires to focus on?
QQ medicine, Tencent ticket
Learning breakout 2 - about effective learning methods
Help tenants
Toraw and markraw
室内ROS机器人导航调试记录(膨胀半径的选取经验)
Ways to improve the performance of raspberry pie
MySQL error 28 and solution
"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?
118. Yanghui triangle
提升树莓派性能的方法
作战图鉴:12大场景详述容器安全建设要求
Show the mathematical formula in El table
室內ROS機器人導航調試記錄(膨脹半徑的選取經驗)
Ogre introduction
[dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours