Skip to content

Instantly share code, notes, and snippets.

@alexpyoung
Last active July 17, 2019 17:22
Show Gist options
  • Save alexpyoung/dd1e475c53f3cb82f9d10f2cd89df26e to your computer and use it in GitHub Desktop.
Save alexpyoung/dd1e475c53f3cb82f9d10f2cd89df26e to your computer and use it in GitHub Desktop.
Search for PaperTrail system and follow logs
# Dependencies
# PaperTrail CLI: https://github.com/papertrail/papertrail-cli#quick-start
# fzf and jq
curl -s -H "X-Papertrail-Token: $PAPERTRAIL_API_TOKEN" https://papertrailapp.com/api/v1/groups.json \
| jq -r '.[0].systems | map(.name) | .[]' \
| fzf \
| xargs papertrail -f -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment