使用logstash迁移遇到的错误(es同步到es)
环境:
OS:Centos 7
ES:6.8.5
问题1:
[2023-10-25T09:29:53,892][INFO ][logstash.outputs.elasticsearch] retrying failed action with response code: 429 ({"type"=>"es_rejected_execution_exception", "reason"=>"rejected execution of processing of [1303][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[.monitoring-kibana-6-2023.10.22][0]] containing [195] requests, target allocation id: 3gB-75SDS0O61UaXT0cllg, primary term: 1 on EsThreadPoolExecutor[name = bIBMAMR/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@1ac7124d[Running, pool size = 2, active threads = 2, queued tasks = 200, completed tasks = 558]]"})
解决办法:
修改logstash.yml文件
pipeline.workers: 2 (原来是4)
pipeline.batch.delay: 5
pipeline.batch.size: 2000 (原来是10000)
问题2:
[ERROR][logstash.outputs.elasticsearch] Encountered a retryable error
原因是同步了.security-6这个index后,密码不一样了
[2023-10-25T10:34:12,373][INFO ][o.e.x.s.a.AuthenticationService] [2xatSTH] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
解决办法:
使用index模糊匹配的方式不同步.security-6
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2021-10-25 oracle bbed安装