Collect Service Fabric Cluster logs in Azure

912 Views Asked by At

I am new to Service Fabric Cluster and I am trying to collect logs from my cluster in Azure.

Basically, I have an event source "XXXXX" defined in ServiceEventSource.cs. Locally, when I add this source to the ETW Providers in the Diagnostics Events view in VS2015, it shows correctly the logs.

In Azure, I am unable to collect any logs. When I created my cluster, 5 storage accounts have been added but I am unable to see logs in the stored blobs. I tried to edit the template.json file based on this article. I added an entry in EtwEventSourceProviderConfiguration :

"EtwEventSourceProviderConfiguration": [
     {
         "provider": "Microsoft-ServiceFabric-Actors",
         "scheduledTransferKeywordFilter": "1",
         "scheduledTransferPeriod": "PT5M",
         "DefaultEvents": {
             "eventDestination": "ServiceFabricReliableActorEventTable"
         }
     },
     {
        "provider": "Microsoft-ServiceFabric-Services",
        "scheduledTransferPeriod": "PT5M",
        "DefaultEvents": {
          "eventDestination": "ServiceFabricReliableServiceEventTable"
         }
     },
     {
        "provider": "XXXXX",
        "scheduledTransferPeriod": "PT5M",
        "DefaultEvents": {
          "eventDestination": "ServiceFabricReliableServiceEventTable"
         }
     }
],

Then I deployed this modified template but I am still unable to collect logs.

Any help would be very appreciated ! Thanks

1

There are 1 best solutions below

0
On BEST ANSWER

I finally found the logs in Azure.

The destination is specified in the template : "eventDestination": "ServiceFabricReliableServiceEventTable" and this is stored in a table in a storage account specified in the template too.