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

json 形式で表示される cloudwatch event log のチートシート

Posted at

AWS Cloudwatch で json 形式のログを吐き出している方が多いと思いますが、その検索方法について毎度ドキュメント読むのが面倒なのでまとめておきます。

使える構文

文字で検索

{ $.message.path = "/hoge" }

数値で検索

{ $.message.statusCode = 500 }

ワイルドカードを使用して検索

{ $.message.statusCode = "*" }

and or を用いた検索
() を使用して優先順位をつけることもできます

{ $.message.statusCode = "*" && $.message.statusCode = "*" }
{ $.message.statusCode = "*" || $.message.statusCode = "*" }
{ $.message = "hoge" || $.message = "fuga" && $.message.statusCode = 400 }
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?