Skip to content

Instantly share code, notes, and snippets.

@palmerabollo
Created October 2, 2017 08:41
Show Gist options
  • Save palmerabollo/a4816a46f51b511d05acd29eee617b2a to your computer and use it in GitHub Desktop.
Save palmerabollo/a4816a46f51b511d05acd29eee617b2a to your computer and use it in GitHub Desktop.
#!/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