
close
close
Azure Monitor is currently in preview and can be used to run searches against log information collected from resources across an Azure subscription. Alerts can also be triggered based on metrics that you define. In this article, I’ll show you how to view and filter the activity log, save your queries, and view and enable diagnostic logs.
Let’s start by opening Azure Monitor and applying filters to find information about specific resources. To follow the instructions below, you’ll need an active Azure subscription.
In the Activity log pane, you can filter the view to find specific information.
Activity Logs in Azure Monitor (Image Credit: Russell Smith)
If you don’t get any results, you might need to change the Timespan filter option. I changed it from last hour to last month. Let’s change the filter and specify a Resource Group (RG), and then save and pin the results to create a tile on the dashboard for quick access to a single view of information for operational logs.
Save a query in Azure Monitor (Image Credit: Russell Smith)
Azure Monitor also allows you to enable and view diagnostic logs for your Azure resources. For example, Windows event system logs are a type of diagnostic log for VMs running Windows Server. Blob, table, and queue logs are available for storage accounts. Diagnostic logs differ from activity logs, which show configuration actions that were performed on resources in an Azure subscription.
Enable diagnostic logging in Azure Monitor (Image Credit: Russell Smith)
Diagnostic logs in Azure Monitor (Image Credit: Russell Smith)
If diagnostic logs are being stored in a storage account, you will see a list of logs that you can directly download in the Diagnostic logs window. Diagnostic logs can be enabled and disabled individually for each Azure resource.
In this article, I showed you how to view and filter the results of the activity logs, save your queries, and view and enable diagnostic logging. In an upcoming article, I’ll show you how to configure metrics and alerts in Azure Monitor.
More in Cloud Computing
Microsoft Dev Box Adds New Features Ahead of its General Availability in July
May 23, 2023 | Laurent Giret
Cloud Computing and the Energy Crisis: Is Building More Data Centers Sustainable?
Mar 17, 2023 | Aidan Finn
Most popular on petri