awslogs-watch
About
awslogs-watch is a CLI tool that makes it easy to use awslogs.
Default cache directory is $XDG_CACHE_HOME/awslogs_watch
or ~/.cache/awslogs_watch
Installation
To install awslogs-watch, use pip.
pip install awslogs_watch
Examples
Update awglogs groups cache
$ awslogs-watch
Command: update
or
$ awslogs-watch --update
Interactive mode
option: -i
$ awslogs-watch -i
Profile: default
Command: get
Group : group_name
Option : --start="1d"
Interactive mode (Default value is recent history)
option: -r
$ awslogs-watch -ir
Profile: default
Command: get
Group : group_name
Option : --start="1d"
Get awslogs
$ awslogs-watch
Command: get
group: select interactive group name
or
$ awslogs-watch --get
group: select interactive group name
Tail awslogs
$ awslogs-watch
Command: tail
group: select interactive group name
or
$ awslogs-watch --tail
group: select interactive group name
Change profile
$ awslogs-watch --profile develop
Set awslogs option
$ awslogs-watch --option="-S"