我有很多 AWS Lambda 日志,我需要查询这些日志以找到相关的日志流名称,
我在日志中记录了一个特定的字符串,
我需要对其进行类似或精确的查询。
日志格式是这样的 -
Request ID => 572bf6d2-e3ff-45dc-bf7d-c9c858dd5ccd
我可以在没有 UUID 字符串的情况下查询日志 -
使用的查询 -
fields @timestamp, @message
| filter @message like /Request ID =>/
| sort @timestamp desc
| limit 20
fields @timestamp, @message
| filter @message like /Request ID => 572bf6d2-e3ff-45dc-bf7d-c9c858dd5ccd/
| sort @timestamp desc
| limit 20