简体   繁体   English

属性无法在 kibana 中进行可视化

[英]Property not available for visualize in kibana

While trying to change a Visualization in Kibana to use another property for the x-axis, that property doesn't appear there.在尝试更改KibanaVisualization以使用 x 轴的另一个属性时,该属性没有出现在那里。

I changed recently nlog to target elastic search using the Elastic common schema .我最近将nlog更改为使用Elastic common schema目标弹性搜索。

After that change the property is not longer called ResolvedRoute but instead _metadata.resolved_route , the problem is that it doesn't appear on the field for x-axis, it says no matches found.更改之后,该属性不再称为ResolvedRoute而是_metadata.resolved_route ,问题是它没有出现在 x 轴的字段上,它说没有找到匹配项。

It is not on the available fields它不在available fields

在此处输入图片说明 在此处输入图片说明

I'm still new to elastic search and kibana, so it's possible i'm missing something simple.我对弹性搜索和 kibana 还是个新手,所以我可能遗漏了一些简单的东西。

Don't know if it's related, but when on Discover menu, looking at the Available fields all of _metadata fields have a question mark不知道它是否相关,但是当在Discover菜单上时, Discover Available fields所有_metadata字段都有一个问号

在此处输入图片说明

I'm already trying to map some of these fields in Index Management / Edit template我已经尝试在索引管理/编辑模板中映射其中一些字段

在此处输入图片说明

Also, if i go to the console and type另外,如果我去控制台并输入

GET /logstash-2020.11.25/_search
{
  "query": {
    "match_all": {}
  }
}

I can see the fields of _metadata that i want, inside _source which is inside of hits .我可以在_source里面看到我想要的_metadata字段,它在hits里面。

I think i already had a similar problem where i had to delete all indexes that match the pattern and then the field appeared, but that doesn't make much sense.我想我已经遇到了类似的问题,我必须删除与模式匹配的所有索引,然后出现该字段,但这没有多大意义。

What could be the problem?可能是什么问题呢?

Chances are high that you haven't refreshed the corresponding index pattern in Kibana.很有可能您还没有在 Kibana 中刷新相应的索引模式。 Therefore the data might exist as documents in Elasticsearch but not yet as a field in the index pattern, which is a Kibana Saved Object.因此,数据可能作为 Elasticsearch 中的文档存在,但还不是作为 Kibana 保存对象的索引模式中的字段。

Please go to Settings / Stack Management (depending on your Kibana version), click on the index pattern you expect the field to be in and refresh the fields list (icon is in the upper right corner).请转到设置/堆栈管理(取决于您的 Kibana 版本),单击您希望字段所在的索引模式并刷新字段列表(图标位于右上角)。

Please let me know if that solved your problem.请让我知道这是否解决了您的问题。

The fields in question were not correctly mapped in the template.有问题的字段未正确映射到模板中。

since metadata is an object it needs to be mapped like that first, then inside of it we can map it's own properties.因为metadata是一个object所以首先需要像这样映射,然后在它内部我们可以映射它自己的属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM