title: AWS CloudWatch filter @LogStream in Logs Insights
body: <p>Is there a way to filter in a widget only the @LogStream s which do not contain a specific log message?</p>
  <p>I tried to use a Log table with some filters as presented in:
  <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html</a>
  and:
  <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html#CWL_QuerySyntax-regex" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html#CWL_QuerySyntax-regex</a></p>
  <p>As I understand the filters apply to messages, but I need a way to filter and select at Log stream level.</p>
  <p>Tried something like this:</p>
  <p>fields @logStream, strcontains(@logStream, &quot;[INFO] - My message&quot;) as found</p>
  <p>| filter found=0</p>
  <p>| display @logStream</p>
  <p>| limit 20</p>
  <p>But the filter is not working, it's displaying all the messages.</p>
  <p>Thank you!</p>