Created
May 17, 2019 15:09
-
-
Save squarepegsys/864d996f8bdebb76b56c6bfe9511be97 to your computer and use it in GitHub Desktop.
search and show wrapper around awslogs
This file contains hidden or 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 | |
# Quick and dirty script to find the log and show it via https://github.com/rpgreen/apilogs | |
# basically this automates the work I would do 90% of the time | |
if [ -z "$1" ] | |
then | |
echo "no stream supplied!" | |
exit 13 | |
fi | |
group=`awslogs groups|grep $1` | |
start="" | |
if [ "$2" ] | |
then | |
start="-s $2" | |
fi | |
awslogs get $group ALL $start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment