Accessing Service Fabric Logs

PK 326 Reputation points
2021-07-21T09:31:21.107+00:00

Hello,

How can I access service fabric logs? Like, when the node is down, it should logged and I should be able to see those logs from the UI.

How can I do this?

Thanks!

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
290 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 13,071 Reputation points Moderator
    2021-07-26T14:15:55.277+00:00

    Hello @PK - Thanks for reaching out and for being patient.

    Logs can be accessed using Service Fabric Explorer. In a web browser, open Service Fabric Explorer from the cluster's management endpoint by navigating to http://mycluster.region.cloudapp.azure.com:19080/Explorer.

    These logs are located on the cluster node that the container service instance is running on. As an example, get the logs of the web front-end container of the Linux Voting sample application.

    In the tree view, expand Cluster>Applications>VotingType>fabric:/Voting/azurevotefront.

    Then expand the partition (d1aa737e-f22a-e347-be16-eec90be24bc1, in this example) and see that the container is running on cluster node _lnxvm_0.

    117899-image.png

    In the tree view, find the code package on the _lnxvm_0 node by expanding Nodes>_lnxvm_0>fabric:/Voting>azurevo

    Also there is a description here on how you can setup the logging for Service Fabric.

    Diagnostics settings on Azure Service Fabric : https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-diagnostics-event-aggregation-wad#update-diagnostics-to-collect-and-upload-logs-from-new-eventsource-channels

    Hope this helps. Please feel free to reach out for any further questions you may have.

    If the above response helped, Please feel free to "Accept as Answer" so it can beneficial to the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.