-
Get lambda initialization time - fields @timestamp, @message, @initDuration | filter @initDuration > 5 | sort @timestamp desc | limit 20
-
Search request by uuid(After searching by uuid, copy lambda requestId from one of logs and use same query with that id) - filter @message like /a348b4c3-7915-4f5f-942b-b79f3589757f/ | fields @timestamp, @message
-
Get average response duration period(For duration add @duration) - filter @type = "REPORT" and @logStream like '[5]' | stats count(*) as count, avg(@initDuration) by bin(10m)
-
Get max min duration response of lambda session - filter @type = "REPORT" | stats avg(@duration), max(@duration), min(@duration) by bin(5m)
-
Get p90 performance results - filter @type = "REPORT" and @logStream like '[4]' | stats count(*) as count, avg(@duration), percentile(@duration, 90) as res_pct_90 by bin(70m)
Last active
December 23, 2024 05:49
-
-
Save sats17/6150cfc17c3d4108b056e190aa6ff09c to your computer and use it in GitHub Desktop.
AWS Cloudwatch queries
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment