LoginSignup
0
0

More than 3 years have passed since last update.

CloudWatchLogsをAWS Cliから使う

Posted at
aws logs filter-log-events --log-group-name your-log-name  --start-time 1558677073000  --end-time 1558677173000 --filter-pattern Exception

なおManagement Consoleだと2行目移行のログも検索の対象になるようですが、aws-cliの場合だと1行目しかfilter-patternに引っかからないようです。

ドキュメント

https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/logs/SearchDataFilterPattern.html
https://docs.aws.amazon.com/cli/latest/reference/logs/filter-log-events.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0