如现有请求日志如下:
field | value
http_host | abc.com
request | /index.php?s=a/b/c
request_body | server=9999&username=hello&player_id=100001&time=0
现需要找到 abc.com/index.php?s=a/b/c 的用户名为 hello 的一条请求日志,它存放在服务器9999上,可以在 elk 查询器中输入:
(request:"/?index.phps=a/b/c") AND (request_body:"username=hello") AND (request_body:"server=9999")
也可以通过Elk自带的筛选器进行筛选