#Cloudwatch Logs CLI Use this package to fetch Cloudwatch logs from the command line.
npm install -g cloudwatch-logs
Usage: cloudwatch-logs [options] <log-group>
Options:
-h, --help output usage information
-r, --aws-region [region] AWS region
-f, --follow Follow logs
-l, --limit [limit] Limit
For example:
cloudwatch-logs -f server-logs
You should have your AWS credentials defined in your environment variables.
To make sure, run aws configure
.