Created
October 2, 2017 08:41
-
-
Save palmerabollo/a4816a46f51b511d05acd29eee617b2a to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
LOGGROUPS=$(awslogs groups | grep "/baikal/notifications-default-aws-dev/" | grep -v "mng") | |
for group in $LOGGROUPS; do | |
awslogs get $group ALL --start='10m ago' --filter-pattern=ERROR | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment