Last active
July 17, 2019 17:22
-
-
Save alexpyoung/dd1e475c53f3cb82f9d10f2cd89df26e to your computer and use it in GitHub Desktop.
Search for PaperTrail system and follow logs
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
# 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