Install Log Analytics agent on Windows computers - Azure Monitor (2024)

  • Article

This article provides information on how to install the Log Analytics agent on Windows computers by using the following methods:

  • Manual installation using the setup wizard or command line.
  • Azure Automation Desired State Configuration (DSC).

The installation methods described in this article are typically used for virtual machines on-premises or in other clouds. For more efficient options that you can use for Azure virtual machines, see Installation options.

Important

The legacy Log Analytics agent will be deprecated by August 2024. After this date, Microsoft will no longer provide any support for the Log Analytics agent. Migrate to Azure Monitor agent before August 2024 to continue ingesting data.

Note

Installing the Log Analytics agent typically won't require you to restart the machine.

Requirements

Supported operating systems

For a list of Windows versions supported by the Log Analytics agent, see Overview of Azure Monitor agents.

SHA-2 code signing support requirement

The Windows agent began to exclusively use SHA-2 signing on August 17, 2020. This change affected customers using the Log Analytics agent on a legacy OS as part of any Azure service, such as Azure Monitor, Azure Automation, Azure Update Management, Azure Change Tracking, Microsoft Defender for Cloud, Microsoft Sentinel, and Windows Defender Advanced Threat Protection.

The change doesn't require any customer action unless you're running the agent on a legacy OS version, such as Windows 7, Windows Server 2008 R2, and Windows Server 2008. Customers running on a legacy OS version were required to take the following actions on their machines before August 17, 2020, or their agents stopped sending data to their Log Analytics workspaces:

  1. Install the latest service pack for your OS. The required service pack versions are:

    • Windows 7 SP1
    • Windows Server 2008 SP2
    • Windows Server 2008 R2 SP1
  2. Install the SHA-2 signing Windows updates for your OS as described in 2019 SHA-2 code signing support requirement for Windows and WSUS.

  3. Update to the latest version of the Windows agent (version 10.20.18067).

  4. We recommend that you configure the agent to use TLS 1.2.

Network requirements

See Log Analytics agent overview for the network requirements for the Windows agent.

Configure Agent to use TLS 1.2

TLS 1.2 protocol ensures the security of data in transit for communication between the Windows agent and the Log Analytics service. If you're installing on an operating system without TLS enabled by default, then you should configure TLS 1.2 using the steps below.

  1. Locate the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols.

  2. Create a subkey under Protocols for TLS 1.2: HKLM\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2.

  3. Create a Client subkey under the TLS 1.2 protocol version subkey you created earlier. For example, HKLM\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client.

  4. Create the following DWORD values under HKLM\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client:

    • Enabled [Value = 1]
    • DisabledByDefault [Value = 0]

Configure .NET Framework 4.6 or later to support secure cryptography because by default it's disabled. The strong cryptography uses more secure network protocols like TLS 1.2 and blocks protocols that aren't secure.

  1. Locate the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319.
  2. Create the DWORD value SchUseStrongCrypto under this subkey with a value of 1.
  3. Locate the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319.
  4. Create the DWORD value SchUseStrongCrypto under this subkey with a value of 1.
  5. Restart the system for the settings to take effect.

Workspace ID and key

Regardless of the installation method used, you'll require the workspace ID and key for the Log Analytics workspace that the agent will connect to. Select the workspace from the Log Analytics workspaces menu in the Azure portal. Then in the Settings section, select Agents.

Note

You can't configure the agent to report to more than one workspace during initial setup. Add or remove a workspace after installation by updating the settings from Control Panel or PowerShell.

Note

While regenerating the Log Analytics Workspace shared keys is possible, the intention for this is not to immediately restrict access to any agents currently using those keys. Agents use the key to generate a certificate that expires after three months. Regenerating the shared keys will only prevent agents from renewing their certificates, not continuing to use those certificates until they expire.

Install the agent

Important

The legacy Log Analytics agent will be deprecated by August 2024. After this date, Microsoft will no longer provide any support for the Log Analytics agent. Migrate to Azure Monitor agent before August 2024 to continue ingesting data.

  • Setup wizard
  • Command Line
  • Azure Automation

The following steps install and configure the Log Analytics agent in Azure and Azure Government cloud by using the setup wizard for the agent on your computer. If you want to learn how to configure the agent to also report to a System Center Operations Manager management group, see deploy the Operations Manager agent with the Agent Setup Wizard.

  1. In your Log Analytics workspace, from the Windows Servers page you navigated to earlier, select the appropriate Download Windows Agent version to download depending on the processor architecture of the Windows operating system.
  2. Run Setup to install the agent on your computer.
  3. On the Welcome page, click Next.
  4. On the License Terms page, read the license and then click I Agree.
  5. On the Destination Folder page, change or keep the default installation folder and then click Next.
  6. On the Agent Setup Options page, choose to connect the agent to Azure Log Analytics and then click Next.
  7. On the Azure Log Analytics page, perform the following:
    1. Paste the Workspace ID and Workspace Key (Primary Key) that you copied earlier. If the computer should report to a Log Analytics workspace in Azure Government cloud, select Azure US Government from the Azure Cloud drop-down list.
    2. If the computer needs to communicate through a proxy server to the Log Analytics service, click Advanced and provide the URL and port number of the proxy server. If your proxy server requires authentication, type the username and password to authenticate with the proxy server and then click Next.
  8. Click Next once you have completed providing the necessary configuration settings.
  9. On the Ready to Install page, review your choices and then click Install.
  10. On the Configuration completed successfully page, click Finish.

When complete, the Microsoft Monitoring Agent appears in Control Panel. To confirm it is reporting to Log Analytics, review Verify agent connectivity to Log Analytics.

Verify agent connectivity to Azure Monitor

After installation of the agent is finished, you can verify that it's successfully connected and reporting in two ways.

From System and Security in Control Panel, find the item Microsoft Monitoring Agent. Select it, and on the Azure Log Analytics tab, the agent should display a message stating The Microsoft Monitoring Agent has successfully connected to the Microsoft Operations Management Suite service.

You can also perform a log query in the Azure portal:

  1. In the Azure portal, search for and select Monitor.

  2. Select Logs on the menu.

  3. On the Logs pane, in the query field, enter:

    Heartbeat | where Category == "Direct Agent" | where TimeGenerated > ago(30m) 

In the search results that are returned, you should see heartbeat records for the computer that indicate it's connected and reporting to the service.

Cache information

Data from the Log Analytics agent is cached on the local machine at C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State before it's sent to Azure Monitor. The agent attempts to upload every 20 seconds. If it fails, it will wait an exponentially increasing length of time until it succeeds. It will wait 30 seconds before the second attempt, 60 seconds before the next, 120 seconds, and so on to a maximum of 8.5 hours between retries until it successfully connects again. This wait time is slightly randomized to avoid all agents simultaneously attempting connection. Oldest data is discarded when the maximum buffer is reached.

The default cache size is 50 MB, but it can be configured between a minimum of 5 MB and maximum of 1.5 GB. It's stored in the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HealthService\Parameters\Persistence Cache Maximum. The value represents the number of pages, with 8 KB per page.

Next steps

  • Review Managing and maintaining the Log Analytics agent for Windows and Linux to learn about how to reconfigure, upgrade, or remove the agent from the virtual machine.
  • Review Troubleshooting the Windows agent if you encounter issues while you install or manage the agent.
Install Log Analytics agent on Windows computers - Azure Monitor (2024)

FAQs

Is Azure log analytics part of Azure Monitor? ›

Log Analytics is just a powerful analysis tool within Azure Monitor. It extends the monitoring capabilities by enabling the querying and analysis of large volumes of log data across different Azure resources.

What is the difference between log analytics agent and Azure Monitor agent? ›

This article provides an overview of Azure Monitor Agent's capabilities and supported use cases. Azure Monitor Agent replaces the Legacy Agent for Azure Monitor. The Log Analytics agent is on a deprecation path and won't be supported after August 31, 2024.

How to install log analytics on Azure VM? ›

To install the Log Analytics agent and connect the virtual machine to a Log Analytics workspace
  1. Sign into the Azure portal.
  2. Select Browse on the left side of the portal, and then go to Log Analytics (OMS) and select it.
  3. In your list of Log Analytics workspaces, select the one that you want to use with the Azure VM.
Feb 1, 2021

How to install Azure agent in Windows Server? ›

Install the agent
  1. Download the Windows MSI installer for the agent using this link. ...
  2. Open an elevated admin command prompt window and change directory to the location where you downloaded the installer.
  3. To install with default settings, run the following command: msiexec /i AzureMonitorAgentClientSetup.msi /qn.
7 days ago

What is the difference between log monitoring and log analytics? ›

Log monitoring and log analytics are related — but different — concepts that work in conjunction. Together, they ensure the health and optimal operation of applications and core services. Whereas log monitoring is the process of tracking logs, log analytics evaluates logs in context to understand their significance.

Does Azure Monitor require an agent? ›

To monitor non-Azure and on-premises servers, you must install the Azure Arc agent. The Arc agent makes your on-premises servers visible to Azure as a resource it can target. You don't incur any additional cost for installing the Azure Arc agent.

What's the difference between an Azure Monitor workspace and a Log Analytics workspace? ›

Log Analytics workspaces contain logs and metrics data from multiple Azure resources, whereas Azure Monitor workspaces currently contain only metrics related to Prometheus.

Is log analytics deprecated? ›

The legacy Log Analytics agent will be deprecated by August 2024. After this date, Microsoft will no longer provide any support for the Log Analytics agent.

How do I enable log analytics in Azure? ›

Configure Log Analytics
  1. Sign in to the Azure portal as at least a Security Administrator and Log Analytics Contributor.
  2. Browse to Log Analytics workspaces.
  3. Select Create.
  4. On the Create Log Analytics workspace page, perform the following steps: ...
  5. Select Review + Create.
  6. Select Create and wait for the deployment.
Feb 9, 2024

What is the difference between MMA and AMA? ›

AMA has a better authentication mechanism than MMA. It also has log filtering capability via Data Collection Rule (which is not supported in MMA).

How to manually install Azure Windows VM Agent? ›

Manual installation might be necessary when you create a custom VM image that's deployed to Azure. To manually install the Azure Windows VM Agent, download the installer and select the latest release. You can also search for a specific version in the GitHub page for Azure Windows VM Agent releases.

How to install Agent on Windows Server? ›

Deploy the Operations Manager agent with the Agent Setup Wizard
  1. Use local administrator privileges to sign in to the computer where you want to install the agent.
  2. On the Operations Manager installation media, double-click Setup.exe.
  3. In Optional Installations, select Local agent.
  4. On the Welcome page, select Next.
Jul 10, 2024

How to check Azure VM agent status in Windows? ›

-Check if the VM agent is running on the virtual machine. You can do this by logging into the virtual machine and checking if the Windows Azure Guest Agent service is running. If it is not running, try starting the service manually. -You can try uninstalling and reinstalling the VM agent.

What's the difference between Azure Monitor Log Analytics and application insights? ›

If we think about the Azure Monitoring Platform/ecosystem, then Log Analytics and App Insights both play a role within that platform as shown below. Log Analytics plays a role in the storage of Log Data and analysis of Log Data. App Insights plays a role in the analysis and insights into log data.

What is the difference between monitoring contributor and log Analytics contributor? ›

The Log Analytics Reader role allows you to view and search all monitoring data as well as view monitoring settings. This includes viewing the configuration of Azure diagnostics on all Azure resources. The Monitoring Contributor role allows you to read all monitoring data and update monitoring settings.

What data is collected by Azure Monitor? ›

Azure Monitor agent (AMA) is used to collect data from Azure virtual machines, Virtual Machine scale sets, and Arc-enabled servers. Data collection rules (DCR) define the data to collect from the agent and where that data should be sent.

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

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.

Top Articles
How many managers do I need per technician?
Information security staffing guide
Walgreens Boots Alliance, Inc. (WBA) Stock Price, News, Quote & History - Yahoo Finance
Hannaford Weekly Flyer Manchester Nh
Week 2 Defense (DEF) Streamers, Starters & Rankings: 2024 Fantasy Tiers, Rankings
Junk Cars For Sale Craigslist
Mcfarland Usa 123Movies
Linkvertise Bypass 2023
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Steve Strange - From Punk To New Romantic
Aries Auhsd
Delectable Birthday Dyes
Facebook Marketplace Charlottesville
Who called you from 6466062860 (+16466062860) ?
Chic Lash Boutique Highland Village
Cashtapp Atm Near Me
Procore Championship 2024 - PGA TOUR Golf Leaderboard | ESPN
Transfer and Pay with Wells Fargo Online®
Der Megatrend Urbanisierung
Aldine Isd Pay Scale 23-24
Outlet For The Thames Crossword
Beverage Lyons Funeral Home Obituaries
Bella Bodhi [Model] - Bio, Height, Body Stats, Family, Career and Net Worth 
Stoney's Pizza & Gaming Parlor Danville Menu
Contracts for May 28, 2020
8005607994
Craigslist Pennsylvania Poconos
Mythical Escapee Of Crete
eugene bicycles - craigslist
A Christmas Horse - Alison Senxation
Combies Overlijden no. 02, Stempels: 2 teksten + 1 tag/label & Stansen: 3 tags/labels.
Nurofen 400mg Tabletten (24 stuks) | De Online Drogist
Lawrence Ks Police Scanner
Poe T4 Aisling
Of An Age Showtimes Near Alamo Drafthouse Sloans Lake
Gabrielle Enright Weight Loss
Craigslist West Seneca
Babbychula
Craiglist Hollywood
Telugu Moviez Wap Org
Frommer's Philadelphia & the Amish Country (2007) (Frommer's Complete) - PDF Free Download
Blackwolf Run Pro Shop
Sallisaw Bin Store
Love Words Starting with P (With Definition)
Quaally.shop
Sandra Sancc
Ouhsc Qualtrics
Strange World Showtimes Near Marcus La Crosse Cinema
Automatic Vehicle Accident Detection and Messageing System – IJERT
Random Warzone 2 Loadout Generator
Bumgarner Funeral Home Troy Nc Obituaries
Gameplay Clarkston
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 5917

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.