How to search any string regular exporession in AWS Log Insights?
Two options that you have are the strcontains
and like
methods:
strcontains:
fields @timestamp, @message
| filter strcontains(@message, "simple query")
| sort @timestamp desc
| limit 20
like:
fields @timestamp, @message
| filter @message like /simple query/
| sort @timestamp desc
| limit 20