标签:200 匹配 extension Kibana 语法 列有 php response KQL
1 KQL 提供了与或非 三种查询逻辑 and, or notg
1-1 与操作
logID:202108130823180101511900792F05F2EC and msg:request
1-2 或操作
name: "Jeff" or name: "Kitty"
1-3 非操作
not logID:202108130823180101511900792F05F2EC
not age >= 10
1-4 通配符操作
会从 msg字段中匹配到。result ,res, response,
所有以res前缀的都会匹配到。
msg:res*
2 加引号与不加引号
引号的使用
message:hello word
这个是搜索message中包含hello,或者包含world,或者两者都包含的情况。
如果只需要把整个hello word一起查询出来。则使用引号
message:"hello word"
3 常见的例子示范,优先级展示
response:200 or extension:php
匹配response列有200,或者extension列有php的内容
response:200 and extension:php
匹配response列有200,并且extension列有php的内容
response:(200 or 404)
匹配response列有200或者404的内容
response:200 and (extension:php or extension:css)
匹配response列有200,并且extension列有php或者css的内容
response:200 and extension:php or extension:css
匹配response列有200并且extension列有php的内容。或者extension列有css的内容
not response:200
匹配response列没有200的内容
response:200 and not (extension:php or extension:css)
匹配response列有200,并且extension列没有php、css的内容
tags:(success and info and security)
匹配tags列有success并且有info并且有security的内容
4 支持对数字列使用数字范围比较
KQL支持对数字和日志列使用 < <= > >=
account_number >= 100 and items_sold <= 200
5 时间列范围
@timestamp < "2021-01-02T21:55:59"
@timestamp < "2021-01"
@timestamp < "2021"
标签:200,匹配,extension,Kibana,语法,列有,php,response,KQL 来源: https://www.cnblogs.com/hellosiyu/p/15689203.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。