title: How to filter CloudWatch Log Insights with ispresent() function
body: <p>I'm trying to perform a really simple query on the <s>not so</s> new <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax-examples.html" rel="noreferrer">AWS Cloudwatch Log Insights</a></p>
  
  <p>I'm following their documentation to filter my logs using <code>ispresent</code> function.</p>
  
  <p>The query is the following:</p>
  
  <pre><code>fields @timestamp, status
  | filter ispresent(status) != 0
  </code></pre>
  
  <p>But this give me an error (the super unhelpful <code>We are having trouble understanding the query</code>)</p>
  
  <p>How can I filter my logs by showing only the logs with the <code>status</code> field?</p>