question

dipansh-9929 avatar image
0 Votes"
dipansh-9929 asked PrakashSingh-9326 answered

C:\ProgramData\Microsoft\SF\Log\Traces filling up fast

Hi, we're noticing that our server is filling up fast due to this folder - C:\ProgramData\Microsoft\SF\Log\Traces.
We have service bus installed and also have azure site recovery solution for this server which . Is it safe to delete the traces and what can we do to prevent such serious growth?

azure-service-fabric
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@dipansh-9929 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

Are you looking to just limit the size of the logs or have the automatically delete? For example, stop logging after X size or after some weeks remove logs?

There are some properties you can configure to limit the diagnostic logs sizes: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-fabric-settings

Specifically this section: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-fabric-settings#diagnostics

Reduce Log size on Service Fabric node

Hope this helps! Looking forward for your reply!

0 Votes 0 ·

Thanks for the helpful suggestion.

0 Votes 0 ·

@dipansh-9929Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

0 Votes 0 ·

1 Answer

PrakashSingh-9326 avatar image
0 Votes"
PrakashSingh-9326 answered

I have scheduled a script to delete old days logs in regular interval.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.