azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Azure Monitor Agent - "Computer" field blank - IIS & Custom Logs

Open cszs opened this issue 2 years ago • 4 comments

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.

cszs avatar Feb 14 '23 15:02 cszs

@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!

Naveenommi-MSFT avatar Feb 14 '23 16:02 Naveenommi-MSFT

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 avatar Feb 14 '23 17:02 cszs

@cszs Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Feb 15 '23 02:02 Naveenommi-MSFT

@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.

AnuragSingh-MSFT avatar Feb 15 '23 07:02 AnuragSingh-MSFT

@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.

AnuragSingh-MSFT avatar Feb 20 '23 06:02 AnuragSingh-MSFT