agent:"Mozilla/5.0"
agent:Mozilla/5.0
类型 | 语法 |
---|---|
指定区间 | response:[100 TO 200] |
大于等于 | response:[201 TO *] |
小于等于 | response:[* TO 200] |
大于指定数值 | response:{10 TO 20} |
注意:TO 必须是大写, [ ] 表示端点数值包含在范围内,{ } 表示端点数值不包含在范围内。
NOT
NOT name:"lisi"
2015-05-20T09:20:41.943Z之后的数据: @timestamp:{2015-05-20T09:20:41.943Z TO *}
2015-05-20T09:20:41.943Z之前的数据: @timestamp:{* TO 2015-05-20T09:20:41.943Z }
指定时间范围: @timestamp:{2015-05-20T09:20:41.943Z TO 015-05-22T09:20:41.943Z}
注意:TO 必须是大写;09:20:41事实上是17:20:41,存在8个小时差
first~
也能匹配到 frist
"select where"~3
表示 select 和 where 中间隔着3个单词以内。
包含指定值: request:/uploads*/
不包含指定值: !request:/uploads*/
AND(并且) request:/uploads*/ AND response:404
OR(或者) request:/uploads*/ OR response:200
组合查询 (uid OR token) AND version
存在 _exists_:http
:返回结果中需要有 http 字段
不存在 _missing_:http
:不能含有 http 字段
? 匹配单个字符
* 匹配0到多个字符
kiba?a, el*search
? * 不能用作第一个字符,例如 :?text *text
+ – && || ! () {} [] ^” ~ * ? : \
以上字符当作值搜索的时候需要用\转义
原文:https://www.cnblogs.com/erlou96/p/14789230.html