elasticsearch - 搜索全词

标签 elasticsearch kibana collectd

目前,我正在为我的公司做一个小项目。我必须将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/

相关文章:

elasticsearch - Logstash MalformedCSVError:行内引用非法|如何配置logstash conf以读取多列mutiline CSV?

elasticsearch - Elasticsearch 没有从 logstash 接收数据

syslog - 如何从logstash中的日志消息中获取数字?

linux - 如何使用 collectd 在 linux 中将系统指标从一台机器推送到另一台机器?

grafana - 如何使用 Prometheus 和collectd 导出器绘制grafana 中的CPU 使用情况图?

elasticsearch - 什么是等效于WHERE状态= 'DONE' AND badgeId IN的 Elasticsearch DSL( 'ID1', 'ID2', 'ID3')

search - Kibana:在文本中搜索字符串

elasticsearch - Elasticsearch,Kibana分类/汇总文档

linux - 如何将时钟周期中的进程 cpu 使用率转换为百分比?

python - Django_elasticsearch_dsl_drf未返回预期结果