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

【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.dtcms.com/a/193267.html

相关文章:

  • 题目:两个线程交替输出1-100的数字,例如:t1--》1,t2--》2,....
  • 本地文件操作 MCP (多通道处理) 使用案例
  • DeepSearch:字节新一代 DeerFlow 框架
  • Swagger使用
  • 全栈项目中是否可以实现统一错误处理链?如果可以,这条链路该如何设计?需要哪些技术支撑?是否能同时满足性能、安全性和用户体验需求?
  • 机器学习 --- 模型选择与调优
  • 山东大学计算机图形学期末复习8——CG11下
  • ElfBoard技术实战|ELF 2开发板本地部署DeepSeek大模型的完整指南
  • C#发送文件到蓝牙设备
  • 【实战篇】低代码报表开发——平台运营日报表的开发实录
  • Spring 框架 JDBC 模板技术详解
  • SQL实战:06交叉日期打折问题求解
  • 解密企业级大模型智能体Agentic AI 关键技术:MCP、A2A、Reasoning LLMs- MCP内幕解析
  • 观QFramework框架底层逻辑有感
  • 经典卷积神经网络
  • Secs/Gem第四讲(基于secs4net项目的ChatGpt介绍)
  • 开源免费iOS或macOS安装虚拟机运行window/Linux系统
  • Qt中控件的Viewport作用
  • 服务器连接多客户端
  • 文章复现|(1)整合scRNA-seq 和空间转录组学揭示了子宫内膜癌中 MDK-NCL 依赖性免疫抑制环境
  • 数据结构中双栈的实现方法分享
  • PH热榜 | 2025-05-15
  • 解码生命语言:深度学习模型TranslationAI揭示RNA翻译新规则
  • Quic如何实现udp可靠传输
  • 缓存的相关内容
  • 该如何了解联排半孔的使用规范?
  • FPGA: UltraScale+ bitslip实现(ISERDESE3)
  • 2025年长三角+山东省赛+ 认证杯二阶段资料助攻说明
  • 快速搭建一个electron-vite项目
  • 套路化编程:C# winform ListView 自定义排序