For all the people painfully read logs on AWS CloudWatch console, saw is your friend.
Get CloudWatch log groups start with paradise-api
:
1 | 𝜆 saw groups --profile ap-prod --prefix paradise-api |
Get last 2 hours logs for paradise-api
from CloudWatch, with saw:
1 | 𝜆 saw get --profile ap-prod --start -2h paradise-api-CloudFormationLogs-mwwmzgYOtbcB --prefix docker | jq .log | sed 's/\\\n"$//; s/^"//' |