aws-logs
Tail AWS CloudWatch Logs.
Usage
aws-logs tail LOG_GROUP
Examples
Here's a couple of examples where LOG_GROUP=/aws/codebuild/demo
:
aws-logs tail /aws/codebuild/demo --since 60m
aws-logs tail /aws/codebuild/demo --since "2018-08-08 08:00:00"
aws-logs tail /aws/codebuild/demo --no-follow
aws-logs tail /aws/codebuild/demo --format simple
aws-logs tail /aws/codebuild/demo --filter-pattern Wed
- By default, the tail command will follow the logs. To not follow use the
--no-follow
option. - The default format is detailed. The detailed format includes the log stream name.
Installation
Install with:
gem install aws-logs
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request