目前,我正在为我的公司做一个小项目。我必须将Grafana更改为 flex 收集的数据源。但是现在我面临的问题是我正在寻找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?
谢谢你的帮助!
最佳答案
索引时间 token (由索引文档生成)应与搜索时间 token (由搜索字词生成)匹配,并且在您这种情况下,这没有发生,这就是搜索查询未找到结果的原因。
请分享您的映射,以便我找出确切的问题并提出解决方案。
关于elasticsearch - 搜索全词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63809119/