Small tool for working with AWS logs
Depends on fzf, aws-cli, jq, and bat;
- Set up your awscli profiles as usual as this uses awscli to fetch logs.
- Add the script somewhere in you path and ensure it's executable.
- run
awslogs fetch
to interactively fetch the logs from a log group. All fetched logs will be displayed usingbat
once complete. - use
awslogs view
,awslogs search
, orawslogs today
to filter and display the fetched logs. You can also run your own commands on the.txt
files in the logs dir.
NOTE: /logs/dir/ can be omitted from the subcommands if AWS_LOGS_DIR has been set to the relevant directory.
The path for this directory is displayed at the end when you call awslogs fetch
.