是否可以使用 aws 云监视日志见解在与正则表达式匹配的消息之前显示 n 条消息。 我必须在多个日志事件中放置一个过滤器。 日志消息序列示例:
<time> INFO Fetching data for apple.
<time> INFO Fetching data for mango.
<time> INFO Fetching data for orange.
<time> ERROR error message.
<time> INFO Fetching data for banana.
<time> ERROR error message.
<time> INFO Fetching data for jackfruit.
<time> INFO Fetching data for figs.
最佳答案
我不相信这是可能的。
一种选择是在查询的选择部分中包含@logStream
,这将允许您单击日志流链接直接转到日志项,并向上滚动以查看之前的日志.
不适合您的情况,但可能会加快调试速度。
关于amazon-web-services - 是否可以使用 aws 云监视日志见解在与正则表达式匹配的消息之前显示 n 条消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62059382/