question

seepath avatar image
0 Votes"
seepath asked bharathn-msft commented

Best practice for azure VM (web server) diagnostics settings

Hi, I generally use log analytics to monitor azure VMs. I like the performance counter, event log settings. When it comes to IIS on azure VM, I would like to know if it is worth collecting IIS logs (wad-iis-logfiles) and other diagnostic settings, and if so, what is the best practice here.

azure-virtual-machinesazure-monitor
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

To follow-up, Please let us know if you have further query on this.
Please don’t forget to Accept the answer

0 Votes 0 ·

1 Answer

learn2skills avatar image
0 Votes"
learn2skills answered bharathn-msft commented

Hi @seepath

I suggest to have Internet Information Services (IIS) stores user activity in log files that can be collected by the Log Analytics agent and stored in Azure Monitor Logs.
Configure Logging in IIS

The performance diagnostics tool helps you troubleshoot performance issues that can affect a Windows or Linux virtual machine (VM) that involve slow VM performance or high usage of CPU, disk space, or memory.


If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, yes, agree I have been using log analytics (LA) to monitor VM health and performance and its has come a long way since inception(LA). My question is more specific to enabling logs for IIS. I also referred to the link earlier but what I am not clear is, - whether it will be sufficient to enable the IIS log from the diagnostic setting blade (azure portal) or do we need to configure the below as well?

Configure Logging at the Site Level
Configure Per-site Logging at the Server Level
Configure Per-server Logging at the Server Level

0 Votes 0 ·

@seepath - Apologies for delay on getting back to this thread. On addition to what @learn2skills have shared, please review the documentation on collecting IIS logs with Log Analytics agent in Azure Monitor. Regarding the site level or server level logging , based on your requirement please enable the logging accordingly and once enabled the Log Analytics agent will start sending the logs to workspace once configured.

Please review the information and revert back if you have any further queries. Thank you

0 Votes 0 ·