title: AWS Log Insights query with string contains
body: <p>how do I query with contains string in AWS Log insights</p>
  <pre><code>fields @timestamp, @message
  filter @message = &quot;user not found&quot;
  | sort @timestamp desc
  | limit 20
  
  fields @timestamp, @message
  filter @message strcontains(&quot;User not found&quot;)
  | sort @timestamp desc
  | limit 20
  </code></pre>