Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch “Kibana显示器”;搜索…“;,不显示任何结果。ElasticSearch中存在已确认的数据_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Kibana - Fatal编程技术网 elasticsearch “Kibana显示器”;搜索…“;,不显示任何结果。ElasticSearch中存在已确认的数据,elasticsearch,kibana,elasticsearch,Kibana" /> elasticsearch “Kibana显示器”;搜索…“;,不显示任何结果。ElasticSearch中存在已确认的数据,elasticsearch,kibana,elasticsearch,Kibana" />

elasticsearch “Kibana显示器”;搜索…“;,不显示任何结果。ElasticSearch中存在已确认的数据

elasticsearch “Kibana显示器”;搜索…“;,不显示任何结果。ElasticSearch中存在已确认的数据,elasticsearch,kibana,elasticsearch,Kibana,我试图建立一个新的索引,但我在Kibana遇到了一些问题。“发现”页面显示“搜索…”几个小时了,只显示了几个数据点。我认为格式可能有问题 Indexes页面显示Average、Maximum和Minimum都是数字,analyzed=false,indexed=true。 InstanceID、MetricName、Region都是字符串,已分析并索引=True。 时间戳是一个日期 这是否表明问题可能是什么 编辑: 警告中的其他信息:“此字段上未启用文档值。这可能会导致在可视化“…和…”时过度消

我试图建立一个新的索引,但我在Kibana遇到了一些问题。“发现”页面显示“搜索…”几个小时了,只显示了几个数据点。我认为格式可能有问题

Indexes页面显示Average、Maximum和Minimum都是数字,analyzed=false,indexed=true。 InstanceID、MetricName、Region都是字符串,已分析并索引=True。 时间戳是一个日期

这是否表明问题可能是什么

编辑: 警告中的其他信息:“此字段上未启用文档值。这可能会导致在可视化“…和…”时过度消耗堆。。。 “这是一个已分析的字符串字段。已分析的字符串具有高度唯一性,可以使用大量内存进行分析”

编辑2: 几点注意事项 我的映射似乎工作不正常

Invoke-RestMethod "$URI/mytestindex/t2credbal" -Method post -body '{
  "mytestindex": {
   "mappings": {
     "t2credbal": { 
       "properties": {
        "timestamp": {"type":"date"},
        "minimum": {"type":"number", "index":"no", "fielddata": { "format": "doc_values" } },
        "maximum": {"type":"number", "index":"no", "fielddata": { "format": "doc_values" } },
        "average": {"type":"number", "index":"no", "fielddata": { "format": "doc_values" } }   
          }  } } } }'
当我运行上面的命令时,我的字段显示为mytestindex.mappings.t2credbal.properties.timestamp,而不仅仅是timestamp

我的值以Records.Timestamp(根据下面的命令)的形式报告,并具有适当的字段类型,因此我认为在我的情况下不完全需要指定映射。然而,Kibana无法搜索和分析数据,尽管它在ElasticSearch中的列表与我预期的完全一致

$json= {Records:  [
   {
    "Minimum":  280.91,
    "Maximum":  280.97,
    "Average":  280.94416666666672,
    "Timestamp":  "2015-04-27T13:12:00Z",
    "InstanceID":  "i-65e2b951",
    "MetricName":  "CPUCreditBalance",
    "Region":  "eu-west-1"
   }

Invoke-RestMethod "$URI/mytestindex/t2credbal/" -Method Post -Body $json -ContentType 'application/json'
编辑#3

我将时间戳格式调整为在其他索引中对我有效的格式;但是,在尝试可视化时间戳字段时,我遇到以下错误:

Error: Request to Elasticsearch failed: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[S73SynuOQzW4NKbwPN7tTg][mytestindex][0]: SearchParseException[[mytestindex][0]: 
query[ConstantScore(*:*)],from[-1],size[0]: Parse Failure [Failed to parse source [{\"size\":0,\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}},\"aggs\":{\"1\":{\"date_histogram\":{\"field\":\"Records.Timestamp\",\"interval\":\"0ms\",\"pre_zone\":\"-04:00\",\"pre_zone_adjust_large_interval\":true,\"min_doc_count\":1,\"extended_bounds\":{\"min\":1430158024806,\"max\":1430158924806}}}}}]]]; nested: 
ElasticsearchIllegalArgumentException[Zero or negative time interval not supported]; }{[S73SynuOQzW4NKbwPN7tTg][mytestindex][1]: SearchParseException[[mytestindex][1]: query[ConstantScore(*:*)],from[-1],size[0]: Parse Failure [Failed to parse source [{\"size\":0,\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}},\"aggs\":{\"1\":{\"date_histogram\":{\"field\":\"Records.Timestamp\",\"interval\":\"0ms\",\"pre_zone\":\"-04:00\",\"pre_zone_adjust_large_interval\":true,\"min_doc_count\":1,\"extended_bounds\":{\"min\":1430158024806,\"max\":1430158924806}}}}}]]]; nested:
 ElasticsearchIllegalArgumentException[Zero or negative time interval not supported]; }{[S73SynuOQzW4NKbwPN7tTg][mytestindex][2]: SearchParseException[[mytestindex][2]: query[ConstantScore(*:*)],from[-1],size[0]: Parse Failure [Failed to parse source [{\"size\":0,\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}},\"aggs\":{\"1\":{\"date_histogram\":{\"field\":\"Records.Timestamp\",\"interval\":\"0ms\",\"pre_zone\":\"-04:00\",\"pre_zone_adjust_large_interval\":true,\"min_doc_count\":1,\"extended_bounds\":{\"min\":1430158024806,\"max\":1430158924806}}}}}]]]; nested: 
ElasticsearchIllegalArgumentException[Zero or negative time interval not supported]; }{[S73SynuOQzW4NKbwPN7tTg][mytestindex][3]: SearchParseException[[mytestindex][3]: query[ConstantScore(*:*)],from[-1],size[0]: Parse Failure [Failed to parse source [{\"size\":0,\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}},\"aggs\":{\"1\":{\"date_histogram\":{\"field\":\"Records.Timestamp\",\"interval\":\"0ms\",\"pre_zone\":\"-04:00\",\"pre_zone_adjust_large_interval\":true,\"min_doc_count\":1,\"extended_bounds\":{\"min\":1430158024806,\"max\":1430158924806}}}}}]]]; nested: 
ElasticsearchIllegalArgumentException[Zero or negative time interval not supported]; }{[S73SynuOQzW4NKbwPN7tTg][mytestindex][4]: SearchParseException[[mytestindex][4]: query[ConstantScore(*:*)],from[-1],size[0]: Parse Failure [Failed to parse source [{\"size\":0,\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}},\"aggs\":{\"1\":{\"date_histogram\":{\"field\":\"Records.Timestamp\",\"interval\":\"0ms\",\"pre_zone\":\"-04:00\",\"pre_zone_adjust_large_interval\":true,\"min_doc_count\":1,\"extended_bounds\":{\"min\":1430158024806,\"max\":1430158924806}}}}}]]]; nested: 
 ElasticsearchIllegalArgumentException[Zero or negative time interval not supported]; }]"}
at http://myurl.com/index.js?_b=5930:42978:38
at Function.Promise.try (http://myurl.com/index.js?_b=5930:46205:26)
at http://myurl.com/index.js?_b=5930:46183:27
at Array.map (native)
at Function.Promise.map (http://myurl.com/index.js?_b=5930:46182:30)
at callResponseHandlers (http://myurl.com/index.js?_b=5930:42950:22)
at http://myurl.com/index.js?_b=5930:43068:16
at wrappedCallback (http://myurl.com/index.js?_b=5930:20873:81)
at wrappedCallback (http://myurl.com/index.js?_b=5930:20873:81)
at http://myurl.com/index.js?_b=5930:20959:26
编辑#4

修正了时间戳格式。 是否使用_搜索验证结果是否按预期显示?语法。 完全吹出并重新创建了我的索引,验证了所有字段名和类型都是正确的。 发现屏幕现在显示“无结果”,而不是“搜索…”。 当我将时间间隔从15分钟更改为任何其他值时,我得到以下结果:

Discover: Cannot read property 'indexOf' of undefined
TypeError: Cannot read property 'indexOf' of undefined
at Notifier.error (myurl/index.js?_b=5930:45607:23)
at Notifier.bound (myurl/index.js?_b=5930:32081:21)
at myurl/index.js?_b=5930:118772:18
at wrappedCallback (myurl/index.js?_b=5930:20873:81)
at myurl/index.js?_b=5930:20959:26
at Scope.$eval (myurl/index.js?_b=5930:22002:28)
at Scope.$digest (myurl/index.js?_b=5930:21814:31)
at Scope.$apply (myurl/index.js?_b=5930:22106:24)
at done (myurl/index.js?_b=5930:17641:45)
at completeRequest (myurl/index.js?_b=5930:17855:7)

我可以通过更正ElasticSearch中的日期格式来解决这个问题。脚本中的Powershell convertto json命令正在将时间戳对象转换为与Kibana不配合的日期格式。将日期格式设置为yyyy-MM-hhThh:MM:ss后,永无休止的“搜索…”问题消失了,但出现了新的问题


将单独发布该问题。

您是否指定要使用哪个分析器?如果是,哪一个?你能通过访问
\u search找到你想要的字段吗?
(进行精简搜索)我没有指定一个。。。我是个新手,所以我对他们还不太了解。我上面发布的示例数据点来自一个搜索结果,这是不够的信息。如果您愿意,您可以使用完整的细节更新您的帖子:索引映射和一些插入数据的curl命令。这样它就可以复制。此外,您使用的是elasticsearch和kibana的哪些版本?进行了更多编辑。指定映射似乎没有必要,因为ElasticSeach正在正确地分析字段,并在Kibana中将它们列为正确的类型(字符串、数字)。试图指定它们似乎只会产生更多问题。此外,我认为时间戳字段可能是问题的根源。当我尝试可视化该字段时,Kibana显示0个结果。。。我将尝试在上面使用格式。为了跟进,我已经完全解决了这些问题。Kibana不喜欢我将stats作为“记录”的子类型输入,所以我调整了脚本,使用foreach语句分别发布JSON对象。通过以以下格式输入数据:{“最小值”:279.29,“最大值”:279.43,“平均值”:279.35833335,“时间戳”:“2015-04-30T08:17:00Z”,“实例ID”:“i-d0be991a”,“度量名称”:“CPUCreditBalance”,“区域”:“ap-Southwest-1”},我能够按预期显示数据。我有同样的问题,但上面的解决方案不起作用。