如何在Kibana 4中排除多个搜索字词?如果我只键入一个术语,则将其排除在外...但我怎样才能有多个被排除的术语.例如,术语"尚未分类"
Tra*_*tek 40
如果我理解你的问题,你试图使用"排除模式"从图表中填充某些值.
"排除模式"和"包含模式"字段用于正则表达式,并在此处记录:http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html.
如果要排除多个字段,可以执行以下操作:
term1|term2|term3
Run Code Online (Sandbox Code Playgroud)
Sim*_*onH 37
Kibana中的查询字段使用Lucene语法,该语法在http://www.lucenetutorial.com/lucene-query-syntax.html上有一些信息.
要排除包含特定文本的术语,请使用
-field:"text"
为了排除不同的文本,我使用
-field :("text1"或"text2")
如果它是两个单独的字段,请尝试
-field1:"text1"-field2:"text2"
Ali*_*Ali 10
在较新版本的 kibana 中,如果您想排除某些术语,请使用以下命令:
not field : "text"
Run Code Online (Sandbox Code Playgroud)
如果你想排除某个短语,请使用以下命令:
not field : "some text phrase"
Run Code Online (Sandbox Code Playgroud)
您可以使用其他逻辑运算not:
field: "should have phrase" and not field: "excluded phrase"
Run Code Online (Sandbox Code Playgroud)