この記事では、Azure Kubernetes Service(AKS)ポッドからWindows イベント ログを収集する方法について説明します。
Azure Command-Line Interface(CLI)を使用してAKS ポッドからWindows イベント ログを収集するには、以下の手順を実施してください。
az account set --subscription <subscription ID>
az aks get-credentials --resource-group <Resource Group Name> --name <AKS name> --admin
kubectl -n <pod namespace> exec pod/<Pod Name> -it -- powershell.exe
Get-EventLog -LogName application
Get-EventLog -LogName system