在Kibana DSL查询中查找特定序列中的关键字
如何匹配包含特定顺序关键字的短语在Kibana DSL查询中查找特定序列中的关键字,kibana,
elasticsearch-dsl,Kibana,
elasticsearch Dsl,如何匹配包含特定顺序关键字的短语 GET /_myIndex/_search { "query": { "bool": { "must": [ {"match_phrase_prefix": {"CommandLine": "hidden*downloadstring*"}} ] } } } 在上面的例子中,我想找到包含术语隐藏的任何命令行字符串序列,在这之后的某个时刻,术语downloadstring,以及其后的任何内容
GET /_myIndex/_search
{
"query": {
"bool": {
"must": [
{"match_phrase_prefix": {"CommandLine": "hidden*downloadstring*"}}
]
}
}
}
在上面的例子中,我想找到包含术语隐藏的任何命令行字符串序列,在这之后的某个时刻,术语downloadstring
,以及其后的任何内容
这是用于该搜索的正确API还是有更好的方法来查找它
谢谢你的帮助 看来你在找一个
下面是我的项目中的一个例子。我希望它能帮助您制定您的查询:
GET my-index-*/_search
{
"_source": ["my.access.url"],
"query": {
"wildcard" : { "my.access.url" : "*downloadLinkOrStuff*" }
}
}