Azure Monitor Logs - Azure Monitor (2024)

  • Article

Azure Monitor Logs is a feature of Azure Monitor that collects and organizes log and performance data from monitored resources. Several features of Azure Monitor store their data in Logs and present this data in various ways to assist you in monitoring the performance and availability of your cloud and hybrid applications and their supporting components.

Along with using existing Azure Monitor features, you can analyze Logs data by using a sophisticated query language that's capable of quickly analyzing millions of records. You might perform a simple query that retrieves a specific set of records or perform sophisticated data analysis to identify critical patterns in your monitoring data. Work with log queries and their results interactively by using Log Analytics, use them in alert rules to be proactively notified of issues, or visualize their results in a workbook or dashboard.

Note

Azure Monitor Logs is one half of the data platform that supports Azure Monitor. The other is Azure Monitor Metrics, which stores numeric data in a time-series database. Numeric data is more lightweight than data in Azure Monitor Logs. Azure Monitor Metrics can support near real time scenarios, so it's useful for alerting and fast detection of issues.

Azure Monitor Metrics can only store numeric data in a particular structure, whereas Azure Monitor Logs can store a variety of data types that have their own structures. You can also perform complex analysis on Azure Monitor Logs data by using log queries, which can't be used for analysis of Azure Monitor Metrics data.

What can you do with Azure Monitor Logs?

The following table describes some of the ways that you can use Azure Monitor Logs.

CapabilityDescription
AnalyzeUse Log Analytics in the Azure portal to write log queries and interactively analyze log data by using a powerful analysis engine.
AlertConfigure a log search alert rule that sends a notification or takes automated action when the results of the query match a particular result.
VisualizePin query results rendered as tables or charts to an Azure dashboard.
Create a workbook to combine with multiple sets of data in an interactive report.
Export the results of a query to Power BI to use different visualizations and share with users outside Azure.
Export the results of a query to Grafana to use its dashboarding and combine with other data sources.
Get insightsLogs support insights that provide a customized monitoring experience for particular applications and services.
RetrieveAccess log query results from:
  • Command line via the Azure CLI or Azure PowerShell cmdlets.
  • Custom app via the REST API or client library for .NET, Go, Java, JavaScript, or Python.
ImportUpload logs from a custom app via the REST API or client library for .NET, Go, Java, JavaScript, or Python.
ExportConfigure automated export of log data to an Azure Storage account or Azure Event Hubs.
Build a workflow to retrieve log data and copy it to an external location by using Azure Logic Apps.
Bring your own analysisAnalyze data in Azure Monitor Logs using a notebook to create streamlined, multi-step processes on top of data you collect in Azure Monitor Logs. This is especially useful for purposes such as building and running machine learning pipelines, advanced analysis, and troubleshooting guides (TSGs) for Support needs.

Data collection

After you create a Log Analytics workspace, you must configure sources to send their data. No data is collected automatically.

This configuration will be different depending on the data source. For example:

  • Create diagnostic settings to send resource logs from Azure resources to the workspace.
  • Enable VM insights to collect data from virtual machines.
  • Configure data sources on the workspace to collect more events and performance data.

Important

Most data collection in Logs will incur ingestion and retention costs. See Azure Monitor pricing before you enable any data collection.

Log Analytics workspaces

Azure Monitor Logs stores the data that it collects in one or more Log Analytics workspaces. You must create at least one workspace to use Azure Monitor Logs. For a description of Log Analytics workspaces, see Log Analytics workspace overview.

Log Analytics

Log Analytics is a tool in the Azure portal. Use it to edit and run log queries and interactively analyze their results. You can then use those queries to support other features in Azure Monitor, such as log search alerts and workbooks. Access Log Analytics from the Logs option on the Azure Monitor menu or from most other services in the Azure portal.

For a description of Log Analytics, see Overview of Log Analytics in Azure Monitor. To walk through using Log Analytics features to create a simple log query and analyze its results, see Log Analytics tutorial.

Log queries

Data is retrieved from a Log Analytics workspace through a log query, which is a read-only request to process data and return results. Log queries are written in Kusto Query Language (KQL). KQL is the same query language that Azure Data Explorer uses.

You can:

  • Write log queries in Log Analytics to interactively analyze their results.
  • Use them in alert rules to be proactively notified of issues.
  • Include their results in workbooks or dashboards.

Insights include prebuilt queries to support their views and workbooks.

For a list of where log queries are used and references to tutorials and other documentation to get you started, see Log queries in Azure Monitor.

Relationship to Azure Data Explorer

Azure Monitor Logs is based on Azure Data Explorer. A Log Analytics workspace is roughly the equivalent of a database in Azure Data Explorer. Tables are structured the same, and both use KQL. For information on KQL, see Kusto Query Language (KQL) overview.

The experience of using Log Analytics to work with Azure Monitor queries in the Azure portal is similar to the experience of using the Azure Data Explorer Web UI. You can even include data from a Log Analytics workspace in an Azure Data Explorer query.

Relationship to Azure Sentinel and Microsoft Defender for Cloud

Security monitoring in Azure is performed by Microsoft Sentinel and Microsoft Defender for Cloud.

These services store their data in Azure Monitor Logs so that it can be analyzed with other log data collected by Azure Monitor.

Learn more

ServiceMore information
Azure Sentinel
  • Where Microsoft Sentinel data is stored
  • Design your Microsoft Sentinel workspace architecture
  • Design a Log Analytics workspace architecture
  • Prepare for multiple workspaces and tenants in Microsoft Sentinel
  • Enable Microsoft Sentinel on your Log Analytics workspace.
  • Log management in Microsoft Sentinel
  • Microsoft Sentinel pricing
  • Charges for workspaces with Microsoft Sentinel
Microsoft Defender for Cloud
  • Continuously export Microsoft Defender for Cloud data
  • Data consumption
  • Frequently asked questions about Log Analytics workspaces used with Microsoft Defender for Cloud
  • Microsoft Defender for Cloud pricing
  • Charges for workspaces with Microsoft Defender for Cloud

Next steps

  • Learn about log queries to retrieve and analyze data from a Log Analytics workspace.
  • Learn about metrics in Azure Monitor.
  • Learn about the monitoring data available for various resources in Azure.
Azure Monitor Logs - Azure Monitor (2024)

FAQs

What is the difference between Azure Monitor and Azure Monitor logs? ›

In conclusion, Azure Monitor and Log Analytics collectively offer a robust solution for monitoring Azure resources. While Azure Monitor provides a lot of features including aggregation of logs, real-time insights and performance metrics, Log Analytics allows advanced query capabilities and extensive log data analysis.

How do I Monitor Azure function logs? ›

To view a near real time stream of application log files generated by your function running in Azure, you can connect to Application Insights and use Live Metrics Stream. Or, you can use the App Service platform built-in log streaming to view a stream of application log files.

What are the limitations of Azure Monitor? ›

Alert and recording rules
LimitValue
Rule groups per Azure Monitor workspace, in an Azure subscription500 You can request an increase.
Rules per rule group20 This limit can't be increased.
Rule group evaluation intervalBetween 1 minute - 24 hours. Default is 1 minute.
Active alertsNo limit at this time.
4 days ago

How do I Monitor application logs in Azure? ›

To enable application logging for Windows apps in the Azure portal, navigate to your app and select App Service logs. Select On for either Application Logging (Filesystem) or Application Logging (Blob), or both. The Filesystem option is for temporary debugging purposes, and turns itself off in 12 hours.

What are the three main functions of Azure monitor? ›

Azure Monitor's core consumption methods include tools to provide insights, visualize, and analyze data. The visualization tools build on the analysis tools and the insights build on top of both the visualization and analysis tools.

What language is Azure monitor logs? ›

Azure Monitor Logs is based on Azure Data Explorer, and log queries are written by using the same Kusto Query Language (KQL). This rich language is designed to be easy to read and author, so you should be able to start writing queries with some basic guidance.

How long are Azure Monitor activity logs kept? ›

Activity log events are retained in Azure for 90 days and then deleted. There's no charge for entries during this time regardless of volume. For more functionality, such as longer retention, create a diagnostic setting and route the entries to another location based on your needs.

Where are Azure Monitor logs stored? ›

Logs in Azure Monitor are stored in a Log Analytics workspace that's based on Azure Data Explorer, which provides a powerful analysis engine and rich query language.

What are the log levels in Azure Monitor? ›

The log level. Valid values are Trace, Debug, Information, Warning, Error, or Critical. The integer value of the log level. Valid values are 0 (Trace), 1 (Debug), 2 (Information), 3 (Warning), 4 (Error), or 5 (Critical).

What are the benefits of Azure monitor? ›

The Native Solution – Azure Monitor

Azure Monitor is a powerful reporting and analytics tool. Azure Monitor maximizes the supply and performance of your applications and services by delivering an inclusive solution for collecting, analyzing, and working on telemetry from the user's cloud and on-premises environments.

What are the key features of an Azure monitor? ›

Azure Monitor has three core components:
  • Application insights, used to monitor web applications.
  • Log analytics, used to query and analyze logged event data.
  • Alerts, used to set up automatic notifications and actions when issues are detected.

Which two data types should you use Azure monitor? ›

Explanation: Azure Monitor provides two primary data types for monitoring and analysis: Metrics and Logs. Metrics provide a numerical view of performance data, while Logs provide a detailed record of events and activities.

What is the difference between Azure Monitor metrics and Azure Monitor logs? ›

Metrics are numerical values that are collected at regular intervals and describe some aspect of a system at a particular time. Azure Monitor Metrics is one half of the data platform that supports Azure Monitor. The other half is Azure Monitor Logs, which collects and organizes log and performance data.

What are the different types of logs in Azure Monitor? ›

We will focus on Azure Monitor logs in this article. Within Microsoft Azure, there are two types of logs: Platform logs: the native logs of the Azure platform, made up of activity logs and resource logs. Application logs: the logs developers send from applications to Azure Monitor Logs.

What is the difference between log and monitor? ›

Logging is a method of tracking and storing data to ensure application availability and to assess the impact of state transformations on performance. Monitoring is a diagnostic tool used for alerting DevOps to system-related issues by analyzing metrics.

What are the different types of monitoring in Azure? ›

Different data types
  • Application monitoring data. ...
  • Azure resource monitoring data. ...
  • Azure tenant monitoring data. ...
  • Azure subscription monitoring data. ...
  • Virtual machine and cloud services data. ...
  • Application insight data. ...
  • Azure Active Directory reporting data. ...
  • Activity logs.

What is the difference between monitoring metrics and logs? ›

Metrics can be used to monitor performance, recognize events of importance, and facilitate prediction of future lapses. Logs are usually used for troubleshooting issues, but also for analyzing user behavior, application metrics and a growing variety of additional use cases.

What are Azure logs? ›

The Azure Monitor activity log is a platform log that provides insight into subscription-level events. The activity log includes information like when a resource is modified or a virtual machine is started. You can view the activity log in the Azure portal or retrieve entries with PowerShell and the Azure CLI.

Top Articles
What techniques can you use to identify obstacles to achieving SMART goals?
How do I decrypt a string using private key
Somboun Asian Market
Cold Air Intake - High-flow, Roto-mold Tube - TOYOTA TACOMA V6-4.0
Ffxiv Shelfeye Reaver
Craftsman M230 Lawn Mower Oil Change
Wisconsin Women's Volleyball Team Leaked Pictures
Cad Calls Meriden Ct
Wmu Course Offerings
Top Financial Advisors in the U.S.
Corpse Bride Soap2Day
Optum Medicare Support
Pbr Wisconsin Baseball
Espn Expert Picks Week 2
454 Cu In Liters
4156303136
Painting Jobs Craigslist
Kamzz Llc
EASYfelt Plafondeiland
At&T Outage Today 2022 Map
Jordan Poyer Wiki
kvoa.com | News 4 Tucson
Cornedbeefapproved
Aes Salt Lake City Showdown
Stockton (California) – Travel guide at Wikivoyage
Primerica Shareholder Account
Kelley Fliehler Wikipedia
Willys Pickup For Sale Craigslist
County Cricket Championship, day one - scores, radio commentary & live text
Otis Offender Michigan
Stolen Touches Neva Altaj Read Online Free
Www Craigslist Com Shreveport Louisiana
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Seymour Johnson AFB | MilitaryINSTALLATIONS
Junee Warehouse | Imamother
Tds Wifi Outage
Elgin Il Building Department
Hindilinks4U Bollywood Action Movies
Ticket To Paradise Showtimes Near Marshall 6 Theatre
Pokemon Reborn Locations
Craigslist Tulsa Ok Farm And Garden
Cranston Sewer Tax
412Doctors
Timothy Warren Cobb Obituary
Professors Helpers Abbreviation
Dontrell Nelson - 2016 - Football - University of Memphis Athletics
Copd Active Learning Template
Bonecrusher Upgrade Rs3
The 13 best home gym equipment and machines of 2023
Kidcheck Login
Guidance | GreenStar™ 3 2630 Display
Latest Posts
Article information

Author: Mr. See Jast

Last Updated:

Views: 5372

Rating: 4.4 / 5 (75 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Mr. See Jast

Birthday: 1999-07-30

Address: 8409 Megan Mountain, New Mathew, MT 44997-8193

Phone: +5023589614038

Job: Chief Executive

Hobby: Leather crafting, Flag Football, Candle making, Flying, Poi, Gunsmithing, Swimming

Introduction: My name is Mr. See Jast, I am a open, jolly, gorgeous, courageous, inexpensive, friendly, homely person who loves writing and wants to share my knowledge and understanding with you.