Distributed systems collect logs using agents deployed on the nodes in the cluster. In Service Fabric, the Azure Diagnostics extension provides the monitoring and diagnostics capabilities on a Windows based Azure Service Fabric nodes. The Diagnostics extension collects logs on each VM and uploads them to the storage account that you specify. You can use the Azure Management Portal or Azure Resource Manager to enable Diagnostics extension on cluster nodes.