Azure logs are used to monitor various resources and applications within Azure. In this lesson, learn about the different types of logs and which resource generates which log type.
- [Instructor] Azure logs can help you troubleshoot and diagnose issues within your Azure environment. We're going to explore the various logs here. And there are four types of logs within Azure. There are activity logs, operating system level diagnostic logs, application logs, and diagnostic logs. Let's dive into each of these in a little bit more detail. Starting with activity logs which are subscription logs, meaning the logs are generated on subscription events, such as PUT, POST, and DELETE events.
You will use these types of logs to determine what, who, and when for an event. For example, when was a virtual machine created and by who. Next, we have application logs, which are used to debug App Service web apps. They can be used for web server diagnostics by capturing data from the web server hosting the app. We can also use application logs for application diagnostics like capturing the data from a web app. Next we have the guest OS diagnostic logs.
And these logs are exactly what the name implies. The logs are collected from an agent on the resource, such as from a virtual machine. And it's the agent that will gather the data from the operating system. And depending on your application, data from that can be gathered as well. Next we have diagnostic logs, and there are two types. The tenant logs gather activity on resources outside an Azure subscription, such as on Azure Active Directory.
And then the resource logs gather activity from resources within the Azure subscription. For example, from the storage account. These resource logs do not require an agent. Let's look at the various logs that can be generated form a compute resource in Azure. We have our Azure infrastructure, and from there activity logs are generated. The guest OS in the application will produce diagnostic logs and the application will generate application logs.
And these logs could be web logs, SQL logs, et cetera. The logs generated for a non-compute resource will also include activity logs from the Azure infrastructure. This would be who created what when, and then the resource itself would generate the diagnostic logs. At a very high level overview those are the logs that are available when you use Azure.
Updated
7/2/2019Released
12/10/2018- Managing Azure subscriptions
- Assigning administrator roles and accounts
- Analyzing resource utilization and consumption
- Configuring diagnostic settings on resources using the portal and PowerShell
- Creating a baseline for resources
- Creating and reviewing alerts and metrics in Azure Monitor
- Managing resource groups
- Allocating resource policies using PowerShell
Share this video
Embed this video
Video: Azure log overview