You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Elasticsearch 8.x与.NET7 WeatherApi日志集成异常求助

问题排查:Serilog Elasticsearch Sink 连接异常及Kibana无日志显示
  • 基于.NET7默认WeatherApi搭建日志示例,使用Serilog及Elasticsearch sink,尝试Elasticsearch 8.7.1和8.10.2版本,问题一致。
  • Docker日志中出现以下异常:
Caught exception while performing bulk operation to Elasticsearch: Elasticsearch.Net.ElasticsearchClientException: The client is unable to verify that the server is Elasticsearch due to an unsuccessful product check call.Some functionality may not be compatible if the server is running an unsupported product. Call: Status code unknown from: GET
  • 按教程操作后Kibana Dashboard无法显示日志,示例代码已托管至GitHub仓库pbc-webapi-elk。
  • Windows PowerShell执行curl http://localhost:9200/返回200响应,内容如下:
StatusCode        : 200
StatusDescription : OK
Content           : {
                      "name" : "a8e6b14cff9e",
                      "cluster_name" : "docker-cluster",
                      "cluster_uuid" : "7LvJ1XZNx813aV6g",
                      "version" : {
                        "number" : "8.7.1",
                        "build_flavor" : "default",
                        "build_type" ...
RawContent        : HTTP/1.1 200 OK
                    X-elastic-product: Elasticsearch
                    Content-Length: 539
                    Content-Type: application/json

                    {
                      "name" : "a8e6b14cff9e",
                      "cluster_name" : "docker-cluster",
                      "cluster_uuid" : "7LvJ1...
Forms             : {}
Headers           : {[X-elastic-product, Elasticsearch], [Content-Length, 539], [Content-Type, application/json]}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : System.__ComObject
RawContentLength  : 539

请求帮忙排查问题。

内容的提问来源于stack exchange,提问作者PicBuilder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 15:45:59