How to turn off Service Fabric System Diagnostic Logs

Marc Diaz 0 Reputation points Microsoft Employee
2024-08-22T16:30:49.2133333+00:00

How do we turn off Service Fabric System Diagnostic logs? We don't want to use the storage account for these diagnostic logs so we removed it from the ARM template we looked at this reference (https://zcusa.951200.xyz/en-us/azure/templates/microsoft.servicefabric/clusters?pivots=deployment-language-arm-template). However, when removing it, all these etl files are just getting stored in D drive and not going anywhere and taking up storage. What do we do?

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

1 answer

Sort by: Most helpful
  1. Mounika Reddy Anumandla 1,300 Reputation points Microsoft Vendor
    2024-08-23T05:18:55.8733333+00:00

    Hi Marc Diaz,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    When you remove the storage account configuration from the ARM template, the Service Fabric system diagnostic logs will still be generated, but they won't be uploaded to the storage account. Instead, they will be stored locally on the cluster nodes, which is what you're seeing on the D drive.

    To fully disable these logs and stop them from being stored on the D drive, you need to modify the diagnostics configuration. In your ARM template, locate the diagnosticsStorageAccountConfig section within the Service Fabric cluster resource. Rather than simply removing the storage account reference, you should adjust the diagnostic settings to turn off logging. This usually means setting the relevant flags to false for different log categories.

    0 comments No comments

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.