LoginSignup
0
0

More than 3 years have passed since last update.

Azure Application GatewayのアクセスログをStorage Accountに保存した話

Last updated at Posted at 2020-07-10

背景

  • ApplicationGatewayとWebAppsで簡単なサイトを公開しているけど、ログを取ってなかったので、アクセスログぐらいは取るようにしたかった。
  • Log Analyticsへの送信の例は、あったけどAzure Storageへの保存の例はなかったので備忘録として残すため。(難しくないので例もなかったのでは)

目標

  • Application gatewayの診断設定に設定が追加される
  • Azure Storageにログが保存される

前提

  • Application GatewayとWebAppsが構築済

保存方法

  1. Azure Storageを作成する。設定値は適宜変更ください(その後も全て初期設定)
    スクリーンショット 2020-07-10 10.56.01.png

  2. 作成できたら、Application Gatewayの診断設定に追加する(保有日数はお好みで)
    スクリーンショット 2020-07-10 11.30.29.png

  3. 設定完了したら、webAppsに何回かアクセスして、5~10分待つ

  4. Storageにログ用の新規コンテナができて、中にjsonファイルが作成される
    スクリーンショット 2020-07-10 11.41.12.png

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