AWS One Liners

From bibbleWiki
Revision as of 02:20, 13 November 2024 by Iwiseman (talk | contribs) (Created page with "=Introduction= This page is for one liners for helping with AWS =Logs= You can tail a log group with <syntaxhighlight lang="bash"> aws logs tail MY-Service-LogGroup --follow </syntaxhighlight> You can search the logs with <syntaxhighlight lang="bash"> aws logs filter-log-events --log-group-name MY-Service-LogGroup --start-time `date -d 2024-11-12T00:00:00Z +%s`000 --filter-pattern ERROR </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This page is for one liners for helping with AWS

Logs

You can tail a log group with

aws logs tail MY-Service-LogGroup  --follow

You can search the logs with

aws logs filter-log-events --log-group-name MY-Service-LogGroup --start-time `date -d 2024-11-12T00:00:00Z +%s`000 --filter-pattern ERROR