CloudWatch-Insights: How to compare attributes on a query
0
I am trying to search for messages on AWS Insights with either matching or non matching attributes.
Specifically, Suppose I have an attribute "resp" and I want to search for messages which do not contain att.resp. Is something like that even feasible on AWS Insights?
Trying to do something similar to:
fields @timestamp, @message
| sort @timestamp desc
| filter @message not like att.resp
asked a month ago19 views
1 Answers
1
I think you are asking to find all events which don't have a value for the field att.resp? In which case, you can use the *filter *command with the *ispresent *function, for example
fields @timestamp, @message
| sort @timestamp desc
| filter NOT ispresent(att.resp
If you want to see more on the Logs Insights syntax see https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html.
answered a month ago
Relevant questions
AWS Rekognition: Search Faces in a Collection issue
asked 5 months agoHow to Search across all hosted zones for records either by name of record or IP address.
asked 2 months agoHow to use SNS or SQS on Unreal with FlexMatch
asked 2 years agoHow to pass SQS attributes when IOT rule is triggered?
asked 2 years agoUnable to map AWS SSO Attributes to SAML Assertion values
Accepted Answerasked 6 months agoLambda function to query Kendra for Lex Response
asked 5 months agoWorkDocs Error - "Missing Attributes. This page requires several GET attributes and/or cookies to be set"
asked 25 days agoCloudWatch-Insights: How to compare attributes on a query
asked a month agoCognito Identity Pools Attribute-based access control - dynamic attributes
asked 5 months agoFilter Expression can only contain non-primary key attributes ?
asked 3 months ago