Get logs for any streams in the specified group between 1 and 2 hours ago

awslogs

  • Queries groups, streams and events from Amazon CloudWatch logs.
    More information: <https://github.com/jorgebastida/awslogs>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

awslogs get {{/var/log/syslog}} --start='{{2h ago}}' --end='{{1h ago}}'

click the source code to copy install awslogs on any operating system with command-not-found.com