简体   繁体   中英

Collect Service Fabric Cluster logs in Azure

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM