Events with detail field value falling in a given numeric range

Get the EventBridge events for a given detail field that has values within a given numeric range

Cloudwatch Log Insights snippet that returns the EventBridge events for a given detail field that has values within a given numeric range

fields @timestamp
| filter detail.field-value >= N1 and detail.field-value <= N2 # replace field-value, N1, N2 with actual values. N1 and N2 are the numeric range.
| sort @timestamp desc
                                


< Back to snippets

GitHub icon View this snippet on GitHub


Running the CloudWatch snippet

Click on the button below to open up the snippet directly into your AWS account.

Manually running the CloudWatch snippet

2. Select Logs, and then choose Logs Insights.
3. In the Select log group(s) drop down, choose one or more log groups to query.
4. Copy snippet into query text area.
5. Click "Run Query"

Created by:

Rahul Sringeri

Rahul Sringeri

Technical Account Manager at AWS for Strategic Accounts