I've tried to setup transferring Service Fabric logs to Azure Diagnostic and I have used this article
[EventSource(Name = "MyCompany-MyApp-WebApi")]
internal sealed class ServiceEventSource : EventSource {}
And I've added a new provider to Clustermanifest
{
"provider": "MyCompany-MyApp-WebApi",
"scheduledTransferPeriod": "PT5M",
"DefaultEvents": {
"eventDestination": "ServiceFabricReliableServiceEventTable"
}
},
It actually sends all logs to Azure Diagnostic, but all log entries are empty (see pic)
ETWEventTable
instead ofServiceFabricReliableServiceEventTable
– Eli Arbel