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 Wednesday, August 26, 2015 7:23 PM Not WebApp related, moving to Cloud Services
Technology Tips and News
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
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