Querying Log Analytics
It can be useful to explore your logs in Log Analytics. Being able to query Log Analytics requires an understanding of Kusto Query Language (KQL). We will explore some basic queries in this exercise to understand how the system works.
Creating a Log Analytics workspace
Before we can display, monitor, and query logs from Azure Monitor, we need to create a Log Analytics workspace. For that, we must perform the following steps:
- Navigate to the Azure portal by clicking on https://portal.azure.com.
- Navigate to your AZ104-Monitor resource group.
- Click + Create to create a new resource.
- Type
log analytics
in the search box and click Log Analytics Workspace:
- Click Create.
- Add the following values:
- Subscription: Select your Azure subscription.
- Resource group:
AZ104-Monitor
. - Name:
az104loganalytics
. - Region:
West Europe
(or select what you prefer).
- Click Review...