Last active
March 1, 2022 06:19
-
-
Save danimality/f0f64c13e04cd1075fdcc7720c7ebc91 to your computer and use it in GitHub Desktop.
cloudwatch Insights Useful Queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields @timestamp, @message, @device | |
| parse @message '* (*) - - [*] "* * *" * * "*" "* (*) * (*) *"' as local, remote, date, method, call, protocol, status, bytes, url, web, device, kit, gecko, mob | |
| filter call like "/api/answer/" | |
| filter method = "POST" | |
| sort @timestamp desc | |
| stats count(*) as total by substr(device, 0,24) | |
| sort total desc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields @timestamp, @message | |
| parse @message '* (*) - - [*] "POST /api/answer/*/ * * * "-" "* (*) * (*) *"' as local, remote, date, answer_id, protocol, status, bytes, web, device, kit, gecko, mob | |
| filter @message like "POST /api/answer/" | |
| sort @timestamp desc | |
| limit 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse @message '[* * * * *] [*] [pid *] *' as day, month, date, time, year, error_type, pid, err_msg | |
| sort @timestamp desc | |
| limit 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields @timestamp, @message | |
| parse @message '* (*) - - [*] "* * *" * * "*" "* (*) * (*) *"' as local, remote, date, method, call, protocol, status, bytes, url, web, device, kit, gecko, mob | |
| filter @message like "POST /api/answer/" | |
| sort @timestamp desc | |
| limit 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fields @timestamp | |
| parse @message "* * * Populating progress points for Learner *" as level, date, time, learner | |
| filter level="DEBUG" | |
| stats count(*) as num_processed by bin(1m) | |
| sort num_processed desc | |
| limit 10000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment