2
votes

I've tried to setup transferring Service Fabric logs to Azure Diagnostic and I have used this article

https://azure.microsoft.com/en-us/documentation/articles/service-fabric-diagnostics-how-to-setup-wad/

[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)

azure table pic

2
Same problem for meEvgeniy Labunskiy
Try using ETWEventTable instead of ServiceFabricReliableServiceEventTableEli Arbel
I've tried ETWEventTable. It doesn't workalexvaluyskiy

2 Answers

0
votes

Try to modify the eventDestination value as EventTable only. The cluster manifest should look like :

{ "provider": "MyCompany-MyApp-WebApi", "scheduledTransferPeriod": "PT5M", "DefaultEvents": { "eventDestination": "EventTable " } },

0
votes

Have a look at this sample . Sample has ARM template to create your cluster with Diagnostics also help you to have same diagnostics storage table for multiple clusters. Also it can be used for Azure services like web api. Would be glad if this helps