是否可以使用 aws cloud watch logs 洞察在匹配正则表达式的消息之前显示 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.