azure-docs
azure-docs copied to clipboard
Azure Monitor Agent - "Computer" field blank - IIS & Custom Logs
Hi, I'm facing an issue related the azure monitor agent, I'm trying to migrate from the legacy agent.
I've successfully configured a DCR to collect the IIS logs, and I can see them in the Log analytics workspace. The servers are Windows VM Scale Sets.
But the "Computer" (Hostname) field stays blank.
(Have the same issue with the custom Logs as well).
I have configured a 3. DCR for the Metrics & Heartbeat, and this one is working fine, I can see the hostname for each computer.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 3ad0f790-a302-45ae-5ef1-0a33c7a8d5f7
- Version Independent ID: 2d2e1861-affc-61bf-b642-f2b57374d496
- Content: Collect IIS logs with Azure Monitor Agent - Azure Monitor
- Content Source: articles/azure-monitor/agents/data-collection-iis.md
- Service: azure-monitor
- Sub-service: agents
- GitHub Login: @guywi-ms
- Microsoft Alias: guywild
@cszs It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!
Hi, I've used the following docs: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-iis https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-collection-text-log?tabs=portal
@cszs Thanks for your feedback! We will investigate and update as appropriate.
@cszs, thank you for reporting it here. Based on the discussion here it seemed to be related to an existing version which should be resolved now.
Can you please try updating the Azure Monitor Agent installed on the VMSS to see if that helps. As mentioned in the link above,
The recommendation is to enable Automatic Extension Upgrade which may take up to 5 weeks after a new extension version is released for it to update installed extensions to the released (latest) version across all regions. Upgrades are issued in batches, so you may see some of your virtual machines, scale-sets or Arc-enabled servers get upgraded before others. If you need to upgrade an extension immediately, you may use the manual instructions below.
If the update does not help, I would suggest reaching out to Azure Support with the information as mentioned here . As the issue would require 1:1 investigation of this particular environment.
@cszs We will now proceed to close this thread as we have not heard back from you. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.