Can the Event Logs be access on Windows Azure for a deployment with multiple instances? It would be able to view the event logs of each server instance if necessary. The "black box" things just doesn't cut it.

link|improve this question
feedback

1 Answer

If you enable Remote Desktop you can connect to each instance and check Event Log remotely.

On the other hand you can configure Azure Diagnostics to copy Event Log to Azure Blob Storage Account periodically.

  1. Enable Azure Diagnostics in .csdef

    <WebRole name="roleName">
     <Imports>
      <Import moduleName="Diagnostics" />
     </Imports>
    </WebRole>
    
  2. Configure Diagnostics Account in .cscfg (be sure to use https for DefaultEndpointsProtocol).

    <Role name="roleName">
     <Instances count="1" />
      <ConfigurationSettings>
       <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=accountName;AccountKey=accountKey" />
      </ConfigurationSettings>
    </Role>
    
  3. Add Diagnostic Initalization to OnStart method.

    var config = DiagnosticMonitor.GetDefaultInitialConfiguration();
    config.WindowsEventLog.DataSources.Add("System!*");
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", config);
    

See http://msdn.microsoft.com/en-us/library/windowsazure/microsoft.windowsazure.diagnostics.diagnosticmonitorconfiguration.aspx for details.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.