I'm trying to perform a really simple query on the not so new AWS Cloudwatch Log Insights
I'm following their documentation to filter my logs using ispresent
function.
The query is the following:
fields @timestamp, status
| filter ispresent(status) != 0
But this give me an error (the super unhelpful We are having trouble understanding the query
)
How can I filter my logs by showing only the logs with the status
field?
Filtering on timestamp is done with the range selector on the top right in the Logs Insights Console or with the startTime and endTime parameters on the StartQuery API.
The accepted answer doesn't work for me, but you can now negate ispresent()
:
fields @timestamp, status
| filter !ispresent(status)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With