Created
February 3, 2017 00:33
-
-
Save ajsharma/e529c03aec73c3dfa74a523cad07701c to your computer and use it in GitHub Desktop.
Rollbar RQL to pull most frequent Rails errors in the last 24 hours
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
SELECT item.counter, item.title, count(*), max(timestamp), item.framework | |
FROM item_occurrence | |
WHERE timestamp > unix_timestamp() - 60 * 60 * 24 | |
AND item.environment = 'production' | |
AND item.framework = 1 | |
AND item.level > 30 | |
GROUP BY item.counter | |
ORDER BY count(*) DESC | |
LIMIT 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the twist if you want to see
ActiveJob
s only