infoMore 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が構築済
保存方法
Azure Storageを作成する。設定値は適宜変更ください(その後も全て初期設定)
作成できたら、Application Gatewayの診断設定に追加する(保有日数はお好みで)
設定完了したら、webAppsに何回かアクセスして、5~10分待つ
Storageにログ用の新規コンテナができて、中にjsonファイルが作成される
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up