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?

More than 1 year has passed since last update.

ELB ログを検索する

Posted at

簡単にメモを残しておく

  • ドキュメントの通り、Athena 上にテーブルを作成
  • 必要に応じて、検索クエリを実行
    • ログ項目は要確認
    • 今回は、 特定 IP からの、特定 URL に対するレスポンスタイム を見たかったので ↓
SELECT
  client_ip,
  elb_status_code,
  target_status_code,
  request_verb,
  request_url,
  time,
  request_creation_time,
  parse_datetime(time,'yyyy-MM-dd''T''HH:mm:ss.SSSSSS''Z') - parse_datetime(request_creation_time,'yyyy-MM-dd''T''HH:mm:ss.SSSSSS''Z')
FROM
  "elb_logs"
WHERE
  client_ip in (
    [対象の IP]
  )
  and request_verb = 'GET'
  and regexp_like(request_url, [対象の URL])
;
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?