当前位置: 首页 > backend >正文

【skywalking】index“:“skywalking_metrics-all“},“status“:404}

skywalking 启动报错

java.lang.RuntimeException: {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index [skywalking_metrics-all]","resource.t
ype":"index_or_alias","resource.id":"skywalking_metrics-all","index_uuid":"_na_","index":"skywalking_metrics-all"}],"type":"index_not_found_exception","reason":
"no such index [skywalking_metrics-all]","resource.type":"index_or_alias","resource.id":"skywalking_metrics-all","index_uuid":"_na_","index":"skywalking_metrics
-all"},"status":404}at org.apache.skywalking.library.elasticsearch.client.SearchClient.lambda$search$0(SearchClient.java:51) ~[library-elasticsearch-client-10.1.0.jar:10.1.
0]at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147) ~[?:?]at com.linecorp.armeria.common.stream.AggregationSupport.lambda$aggregate$2(AggregationSupport.java:133) ~[armeria-1.29.3.jar:?]at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[?:?]at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[?:?]at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) ~[?:?]at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2147) ~[?:?]at com.linecorp.armeria.common.stream.DeferredStreamMessage.lambda$delegate$1(DeferredStreamMessage.java:187) ~[armeria-1.29.3.jar:?]at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) ~[?:?]at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911) ~[?:?]

去ES里面查看

没有找到

skywalking_metrics-all

在 Elasticsearch 的管理后台中创建名为 skywalking_records-all 的索引的详细步骤:

一、使用 Kibana Dev Tools(推荐)

  1. 打开 Kibana

    • 默认地址为 http://your_kibana_host:5601(如 http://localhost:5601)。

    • 登录到 Kibana。

  2. 进入 Dev Tools

    • 在左侧菜单中,点击 "Dev Tools"

  3. 执行创建索引的命令

    • 在控制台中输入以下命令并运行:

PUT /skywalking_records-all
{"mappings": {"properties": {"@timestamp": {"type": "date"},"operation_name": {"type": "keyword"},"service_name": {"type": "keyword"},"latency": {"type": "float"},"status": {"type": "keyword"},"tags": {"type": "object"}}}
}

再次启动Kibana

提示:找不到 kywalking_records-all

创建一下:

PUT /skywalking_records-all
{"mappings": {"properties": {"@timestamp": {"type": "date"},"operation_name": {"type": "keyword"},"service_name": {"type": "keyword"},"latency": {"type": "float"},"status": {"type": "keyword"},"tags": {"type": "object"},"start_time": {"type": "date"}}}
}

再次启动Kibana

提示:

{"error": {"root_cause": [{"type": "query_shard_exception","reason": "No mapping found for [start_time] in order to sort on","index_uuid": "ZENCEY8DTqmALuxkuSiYdA","index": "skywalking_records-all"}],"type": "search_phase_execution_exception","reason": "all shards failed","phase": "query","grouped": true,"failed_shards": [{"shard": 0,"index": "skywalking_records-all","node": "KUGv_q19QomaoM8D5H1NPQ","reason": {"type": "query_shard_exception","reason": "No mapping found for [start_time] in order to sort on","index_uuid": "ZENCEY8DTqmALuxkuSiYdA","index": "skywalking_records-all"}}]},"status": 400
}

这个错误表明在 skywalking_records-all 索引中尝试对 start_time 字段进行排序时,Elasticsearch 无法找到该字段的映射。这通常是因为索引中没有定义 start_time 字段,或者该字段从未被写入过数据。

执行下面命令

PUT /skywalking_records-all/_mapping
{"properties": {"start_time": {"type": "date"}}
}

再再次启动Kibana

 ./startup.sh 


这会OK了




http://www.xdnf.cn/news/6510.html

相关文章:

  • Ansys Zemax | 在 MATLAB 或 Python 中使用 ZOS-API 进行光线追迹的批次处理
  • TASK02【Datawhale 组队学习】使用 LLM API 开发应用
  • javascript —— ! 和 !! 的区别与作用
  • 傻子学编程之——数据库如何性能优化
  • 西瓜书【机器学习(周志华)】目录
  • [网络升级指南] 服务器网卡/带宽如何选?1GbE vs 10GbE vs 25GbE+ 性能与成本深度解析 (2025)
  • 香山新篇:海淀低密奢居的典范之作
  • 今日行情明日机会——20250515
  • OpenShift AI - 用 ModelCar 构建容器化模型,提升模型弹性扩展速度
  • 冲刺软考:做减法,走出备考迷茫,高效提分!
  • 学习C++的好书:C++编程之禅
  • Spring类
  • 基于WinCC flexible 2008、STEP_7和博途之间的项目移植
  • rsync入门笔记
  • 【Redis】压缩列表
  • 打破传统束缚:Captiks 无线惯性动捕与步态分析系统如何重新定义运动测量?
  • 【内含文档PPT】基于SSM框架的智能交通信息管理系统
  • day21-线性表(链表III)
  • 网络爬虫学习之httpx的使用
  • 函数专题1
  • 【大模型面试每日一题】Day 19:如何设计自动化评估框架验证大模型的多步推理能力(如数学解题)?
  • 使用Python与正则表达式高效提取Excel中的票号数据
  • 2.Klipper开发篇:Klipper上位机源码分析
  • 时源芯微|TSFE0806U-2L-900TF复合共模滤波器在USB端口保护
  • Python函数参数传递机制深度解析:值传递与引用传递的真相
  • 理解c++中关键字友元friend的作用
  • 盲盒:拆开未知的惊喜,收藏生活的仪式感
  • 现代生活中的创新健康养生之道
  • LLM笔记(二)LLM数据基础
  • 【C++】Module CPP:模块化编程 Demo