elasticsearch Kibana没有';t在“中显示任何结果;发现”;标签,elasticsearch,kibana,elmah,nest,elastic-stack,elasticsearch,Kibana,Elmah,Nest,Elastic Stack" /> elasticsearch Kibana没有';t在“中显示任何结果;发现”;标签,elasticsearch,kibana,elmah,nest,elastic-stack,elasticsearch,Kibana,Elmah,Nest,Elastic Stack" />

elasticsearch Kibana没有';t在“中显示任何结果;发现”;标签

elasticsearch Kibana没有';t在“中显示任何结果;发现”;标签,elasticsearch,kibana,elmah,nest,elastic-stack,elasticsearch,Kibana,Elmah,Nest,Elastic Stack,我已经设置了elasticsearch(版本1.7.3)和Kibana(版本4.1.2)来索引应用程序的Elmah XML文件错误。我正在使用.Net解析xml文件,并嵌套ElasticSearch客户端以将索引插入ElasticSearch。问题是Kibana在“发现”选项卡中不显示任何数据 当我运行curl-XGET localhost:9200/.kibana/index pattern/eol时?命令,我得到以下响应: {"_index":".kibana","_type":"index

我已经设置了elasticsearch(版本1.7.3)和Kibana(版本4.1.2)来索引应用程序的Elmah XML文件错误。我正在使用.Net解析xml文件,并嵌套ElasticSearch客户端以将索引插入ElasticSearch。问题是Kibana在“发现”选项卡中不显示任何数据

当我运行curl-XGET localhost:9200/.kibana/index pattern/eol时?命令,我得到以下响应:

{"_index":".kibana","_type":"index-pattern","_id":"eol","_version":2,"found":tru
e,"_source":{"title":"eol","timeFieldName":"errorTime","fields":"[{\"name\":\"_i
ndex\",\"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"an
alyzed\":false,\"doc_values\":false},{\"name\":\"filePath\",\"type\":\"string\",
\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":true,\"doc_values\"
:false},{\"name\":\"_type\",\"type\":\"string\",\"count\":0,\"scripted\":false,\
"indexed\":true,\"analyzed\":false,\"doc_values\":false},{\"name\":\"message\",\
"type\":\"string\",\"count\":0,\"scripted\":false,\"indexed\":true,\"analyzed\":
true,\"doc_values\":false},{\"name\":\"errorTime\",\"type\":\"date\",\"count\":0
,\"scripted\":false,\"indexed\":true,\"analyzed\":false,\"doc_values\":false},{\
"name\":\"_source\",\"type\":\"_source\",\"count\":0,\"scripted\":false,\"indexe
d\":false,\"analyzed\":false,\"doc_values\":false},{\"name\":\"_id\",\"type\":\"
string\",\"count\":0,\"scripted\":false,\"indexed\":false,\"analyzed\":false,\"d
oc_values\":false}]"}}
现状 Elasticsearch已启动并运行,响应API直接在Elasticsearch上执行查询,如*返回大量结果

Kibana已经启动并运行,甚至可以找到Elasticsearch公开的“eol”索引 Kibana还显示了“eol”文档的正确属性和数据类型 “发现”选项卡不显示任何结果…即使将时间段设置为几年。。。 我已尝试从“设置”选项卡中删除索引,重新启动Kibana,然后在“设置”中重新添加索引。 我还尝试使用yyyy-MM ddThh:MM:ss格式保存日期字段,但仍然没有看到任何结果。 我认为问题在于Elmah UTC日期格式(例如2015-10-13T19:54:49.4547709Z)或Elmah消息。我猜ElasticSearch喜欢Elmah的信息,但Kibana不喜欢

有什么想法吗

以下是Kibana如何看待“eol”索引:

…以及我在“发现”选项卡中看到的内容:

我使用Nest将数据插入ElasticSearch。Nest序列化列表并向ElasticSearch发出请求的方式似乎具有Kibana不喜欢的特殊字符

之前(不工作):

private static void WriteErrorsIntoElasticSearchIndex(ElasticClient elasticClient, List<error> errors)
        {
                elasticClient.Index(errors);    
        }
private static void WriteErrorsIntoElasticSearchIndex(ElasticClient elasticClient, List<error> errors)
        {
            foreach (var error in errors)
            {
                elasticClient.Index(error);    
            }
        }
private static void writerRorsintoElasticSearchIndex(ElasticClient ElasticClient,列表错误)
{
elasticClient.索引(错误);
}
工作后:

private static void WriteErrorsIntoElasticSearchIndex(ElasticClient elasticClient, List<error> errors)
        {
                elasticClient.Index(errors);    
        }
private static void WriteErrorsIntoElasticSearchIndex(ElasticClient elasticClient, List<error> errors)
        {
            foreach (var error in errors)
            {
                elasticClient.Index(error);    
            }
        }
private static void writerRorsintoElasticSearchIndex(ElasticClient ElasticClient,列表错误)
{
foreach(错误中的var错误)
{
elasticClient.索引(错误);
}
}

您有“\”,通常在elasticsearch结果中没有,JSON无法解析结果,因为它不合适,

这可能是时间问题。你能不能拿“过去5年”之类的东西看看有没有结果。@Vinethmohan:当我搜索过去12个小时时,kibana没有显示任何东西。我目前正在运行过去5年的搜索。@VineethMohan:如果我搜索过去5年,则找不到任何数据。能否显示使用
curl-XGET localhost:9200/.kibana/index pattern/eol
?我觉得奇怪的是,“可用字段”下没有列出任何字段,即使它们显示在“设置”>“索引”中。您是否也可以显示您在查询Kibana时得到的日志跟踪?最后,你在运行什么版本的Kibana?我们会成功的,不用担心…顺便说一句。您可以尝试
elasticClient.IndexMany(errors)
。谢谢Rob,我确实找到了该属性,但很匆忙。我将测试并让社区知道。