搜索全词

Search for full word

目前我正在为我的公司做一个小项目。我必须在哪里将我们的 Grafana 更改为 elastic-collectd 数据源。但现在我面临着搜索 type_instance:port-channel42 的问题。我可以搜索这个:

host:"host-1" and plugin:snmp and collectd_type:if_octets and type_instance:"port-"

然后把它弄出来:

host: host-1 plugin: snmp type_instance: port-channel1257 collectd_type: if_octets tx: 123,392,862,080,243.016 type: collectd @version: 1 @timestamp: Sep 9, 2020 @ 11:44:20.338 rx: 73,221,669,458,084.984 id: 21tAcnQBk9LfI6whcwj _type: _doc _index: collectd-09-2020.09.09 _score: -

但是如果我输入完整的单词(type_instance:"port-channel42":

host:"host-1" and plugin:snmp and collectd_type:if_octets and type_instance:"port-channel42"

我得到这个输出:

No results match your search criteria

我正在使用 Kibana 7.9.0!

除此之外我还需要输入port-channel41吗?

感谢您的帮助!

索引时间标记(从索引文档生成)应该与搜索时间标记(从搜索词生成)相匹配,在你的情况下它没有发生这就是你的搜索查询没有结果的原因。

请分享您的映射,以便我可以查明确切的问题并提出解决方案。