我需要在Azure存儲中自動保留所有IIS日誌,如何啓用它?在Windows Azure中存儲IIS日誌
我看到DiagnosticMonitorConfiguration
課程中有不同的屬性,例如, DiagnosticInfrastructureLogs,日誌,目錄等。上述哪一項負責IIS日誌?日誌存儲的是什麼blob/table?
謝謝!
我需要在Azure存儲中自動保留所有IIS日誌,如何啓用它?在Windows Azure中存儲IIS日誌
我看到DiagnosticMonitorConfiguration
課程中有不同的屬性,例如, DiagnosticInfrastructureLogs,日誌,目錄等。上述哪一項負責IIS日誌?日誌存儲的是什麼blob/table?
謝謝!
在Directory Buffers下,您有兩個選項:IIS日誌和失敗的請求日誌。
下面是從列出了這些選項的診斷模式定義一個片段:
<Directories bufferQuotaInMB="1024"
scheduledTransferPeriod="PT1M">
<!-- These three elements specify the special directories
that are set up for the log types -->
<CrashDumps container="wad-crash-dumps" directoryQuotaInMB="256" />
<FailedRequestLogs container="wad-frq" directoryQuotaInMB="256" />
<IISLogs container="wad-iis" directoryQuotaInMB="256" />
<!-- For regular directories the DataSources element is used -->
<DataSources>
<DirectoryConfiguration container="wad-panther" directoryQuotaInMB="128">
<!-- Absolute specifies an absolute path with optional environment expansion -->
<Absolute expandEnvironment="true" path="%SystemRoot%\system32\sysprep\Panther" />
</DirectoryConfiguration>
<DirectoryConfiguration container="wad-custom" directoryQuotaInMB="128">
<!-- LocalResource specifies a path relative to a local
resource defined in the service definition -->
<LocalResource name="MyLoggingLocalResource" relativePath="logs" />
</DirectoryConfiguration>
</DataSources>
您可以在上面的條目中看到容器名稱。這是文件的blob容器。 – Tom 2012-04-11 18:46:51
謝謝!默認情況下是否啓用IISLogs是否足以在代碼中設置diagnosticConfiguration.Directories.ScheduledTransferPeriod,還是需要更新配置文件? – 2012-04-11 20:17:22
在代碼中設置它會更新上面的配置文件。該示例只是存儲在Blob存儲中並由Azure診斷代理利用的xml代碼片段。 – BrentDaCodeMonkey 2012-04-12 12:54:02
重複的問題。檢查http://stackoverflow.com/questions/4240588/retrieving-iis-logs-from-azure – serb 2012-04-11 18:02:50
@serb:我看着這個問題,這不是我所需要的 – 2012-04-11 18:23:09