我正在尝试让我的Azure工作者角色的日志出现在Application中。当我运行Get-AzureServiceDiagnosticsExtension时,我得到以下信息.
<PublicConfig
xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<WadCfg>
<DiagnosticMonitorConfiguration overallQuotaInMB="8192" sinks="applicationInsights.errors">
<DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Verbose" />
<PerformanceCounters scheduledTransferPeriod="PT1M">
<PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes"
sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time"
sampleRate="PT3M" />
</PerformanceCounters>
<WindowsEventLog scheduledTransferPeriod="PT1M">
<DataSource name="Application!*[System[(Level=1 or Level=2 or Level=3)]]" />
<DataSource name="Windows Azure!*[System[(Level=1 or Level=2 or Level=3 or Level=4)]]" />
</WindowsEventLog>
<EtwProviders sinks="applicationInsights" />
<CrashDumps dumpType="Full">
<CrashDumpConfiguration processName="WaAppAgent.exe" />
<CrashDumpConfiguration processName="WindowsAzureGuestAgent.exe" />
<CrashDumpConfiguration processName="WaWorkerHost.exe" />
<CrashDumpConfiguration processName="DiagnosticsAgent.exe" />
</CrashDumps>
<Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" />
<Metrics resourceId="/subscriptions/{My_Subscription_GUID}/resourceGroups/Group/providers/Microsoft.ClassicCompute/domainNames/MyCloudServiceName" />
</DiagnosticMonitorConfiguration>
<SinksConfig>
<Sink name="applicationInsights">
<ApplicationInsights />
<Channels>
<Channel logLevel="Verbose" name="errors" />
</Channels>
</Sink>
</SinksConfig>
</WadCfg>
<StorageAccount>myclassicstorage</StorageAccount>
</PublicConfig>下面的内容来自使用Set-AzureServiceDiagnosticsExtension上传的原始diagnostics.wadcfgx文件
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="{myclassicstorage}" key="{MyClassicStorageKey}" endpoint="https://myclassicstorage.blob.core.windows.net/" />
</PrivateConfig>使用Azure存储资源管理器,我可以连接到我的古典式存储空间,我可以在WADLogsTable中看到我想要的条目,但是当我进入Application时,没有什么.

因此,我的跟踪条目似乎正在将其放入存储中,但我的Application并没有从存储中提取数据。
无论如何,这些问题的答案可能导致对失败的解释:-
发布于 2016-06-01 03:56:59
它才刚开始起作用。我相信答案是更改EtwProviders配置如下..。
<EtwProviders>
<EtwEventSourceProviderConfiguration provider="WaWorkerHost.exe">
<DefaultEvents />
</EtwEventSourceProviderConfiguration>
</EtwProviders>我从查看发布到WaWorkerHost.exe的数据中得到了“WADLogsTable”
EventName="MessageEvent“Message=2016-06-01 03:17:50,924 14 INFO myservice.TaskProcessing (null) -核心完成-下一个到期日-06-01T03:18:27.5430000”TraceSource=“WaWorkerHost.exe
https://stackoverflow.com/questions/37558379
复制相似问题