1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

aws cloudwatch logsinsights ログ確認クエリ(kosekiメモNO6)

Last updated at Posted at 2024-10-24

はじめに

aws cloudWatchのログインサイト、よくクエリを実行してシステムログを確認するので、
クエリのテンプレートをメモしておきます。

動作環境

aws cloudwatchアクセスできるユーザー。

使い方

fields、filter、parseなどのコマンドは参考文献から確認できます。

logsinsights.log
fields @message
| filter @logStream like /testtesttest001/
| parse @message '"message":"*"' as logMessage
| fileter logMessage like /test01/ and logMessage not like /test02/
| display logMessage
| sort @timestamp desc
#| limit 2000

参考文献

CloudWatch Logs Insights クエリ構文


以上

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?