1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:02:08 +02:00
tldr/pages.de/common/awslogs.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

24 lines
770 B
Markdown

# awslogs
> CLI um Log-Gruppen, Streams und Events von Amazon CloudWatch Logs abzurufen.
> Weitere Informationen: <https://github.com/jorgebastida/awslogs>.
- Liste alle Log-Gruppen auf:
`awslogs groups`
- Liste alle bestehenden Streams einer angegebenen Log Gruppe auf:
`awslogs streams {{/var/log/syslog}}`
- Rufe alle logs für jegliche Streams in der angegebenen Log-Gruppe für die letzten 1 bis 2 Stunden ab:
`awslogs get {{/var/log/syslog}} --start='{{2h ago}}' --end='{{1h ago}}'`
- Rufe alle Logs für einen bestimmten CloudWatch-Logs Filter-Ausdruck ab:
`awslogs get {{/aws/lambda/meine_lambda_gruppe}} --filter-pattern='{{ERROR}}'`
- Beobachte Logs für jegliche Streams in der angegebenen Log-Gruppe:
`awslogs get {{/var/log/syslog}} ALL --watch`