How to collect IIS Logs & Event Viewer logs from the Azure Web Roles / Worker Role

Hi,

You can configure Diagnostics for Azure Cloud Services.

Hope this helps!

August 26th, 2015 3:31am

In Visual Studio, you can choose to collect diagnostics data for roles that run in Azure, when you run the service in the emulator before deploying it. All changes to diagnostics settings in Visual Studio are saved in the diagnostics.wadcfgx configuration file. These configuration settings specify the storage account where diagnostics data is saved when you deploy your cloud service.

To collect IIS logs from you web role, open diagnostics.wadcfg and add the Directories element to the DiagnosticMonitorConfiguration element (if it doesn't already exist) and then add the IISLogs element:

<Directories bufferQuotaInMB="0" scheduledTransferPeriod="PT30M">
       <IISLogs container="wad-iis" directoryQuotaInMB="0" />
    </Directories>

The container  attribute specifies the name of the container in storage where the contents of the directory are to be transferred.

Once the collection of IIS logs is configured, log data will be transferred to the wad-iis container (or the container you specify) in your storage account.

Hope this helps,

Caroline

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 3:39am

Hi team,
Can any one guide me on how we can collect IIS Logs & Event Viewer logs from the Azure Web Roles / Worker Role
  • Moved by David Ebbo 11 hours 52 minutes ago Not WebApp related, moving to Cloud Services
August 26th, 2015 4:00am

Hello Kumar,

You can refer below links

How to store and access your IIS Logs on Windows Azure Web Site

Using KUDU with Microsoft Azure Web Apps

Azure Website SiteExtension to view EventLogs

Regards,
Somashekar

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 5:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics