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

【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.lryc.cn/news/2378297.html

相关文章:

  • handsome主题美化及优化:10.1.0最新版 - 1
  • (9)python开发经验
  • 【C++详解】string各种接口如何使用保姆级攻略
  • 2025深圳杯D题法医物证多人身份鉴定问题四万字思路
  • 【时时三省】(C语言基础)字符数组应用举例2
  • Mysql触发器(附案例)
  • 使用DDR4控制器实现多通道数据读写(十二)
  • Kafka 生产者工作流程详解
  • 完整卸载 Fabric Manager 的方法
  • 地下停车场调频广播无线覆盖系统:融合精准选频光纤传输均匀覆盖于一体的创新型地下车库广播无线覆盖平台
  • 【Linux】进程间通信(一):认识管道
  • 中大型水闸安全监测系统解决方案
  • 蓝桥杯12届国B 123
  • Harmony开发 List、Grid拖动自定义排序实现
  • 迅龙3号基于兆讯MH22D3适配CST328多点触摸驱动开发笔记
  • 【001】.so文件分析之 ELF格式符号
  • QT之LayOut布局
  • 无需配置光猫,使用网管交换机配合路由器的IPTV功能实现单线复用
  • C++类与对象--1 特性一:封装
  • Linux:计算机的层状结构
  • 【SpringBoot】关于MP使用中配置了数据库表前缀的问题
  • AI 赋能防艾宣传:从创意到实践,我的 IP 形象设计之旅
  • Redis 事务与管道:原理、区别与应用实践
  • 每日算法刷题Day9 5.17:leetcode定长滑动窗口3道题,用时1h
  • 手机打电话时如何将通话对方的声音在手机上识别成文字
  • 重排序模型解读:gte-multilingual-reranker-base 首个GTE系列重排模型诞生
  • C++学习:六个月从基础到就业——C++11/14:列表初始化
  • SQL语句执行问题
  • 2025系统架构师---选择题知识点(押题)
  • flutter flutter run 运行项目卡在Running Gradle task ‘assembleDebug‘...