Is it possible to display n messages prior to a message that matches regex using aws cloud watch logs insights. I have to put a filter across multiple log events. Example log message sequence:
<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.