title: Handling single quote in AWS Cloudwatch Logs Insights
body: <p>Here is some text that contains single-quotes:</p>
  
  <pre><code>Cannot read property 'email' of undefined:
  </code></pre>
  
  <p>When I run the below query with the above text</p>
  
  <pre><code>filter @message like /Cannot read property 'email' of undefined/
  | stats count()
  </code></pre>
  
  <p>I am not able to get a count. However, in reality there are lots of above text in my logs.</p>
  
  <p>Question is , how to escape the single quotes in the query?</p>