1

I have followed every guide there is, and also even tried to disable logging through this PowerShell command.

Set-SPUsageService -LoggingEnabled $false
Set-SPLogLevel -TraceSeverity None -EventSeverity None

But still my logs folder is spammed with log files.

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS

https://technet.microsoft.com/en-us/library/ee663480.aspx

How can this be? Do I have to restart some kind of service in order for it to work?

5
  • I am just curious why you want to disable the logging? Due to space or something else? Run get command and see what login level set.
    – Waqas Sarwar MVP
    Commented Jun 3, 2015 at 23:25
  • Get-SPLogLevel Reveals that all entries has "None" "None". So it should be alright. I want to disable it because im beeing flooded with Forced due to logging gap messages, and CPU is running at 100%. Commented Jun 3, 2015 at 23:29
  • Did u use the enablefloodprotection... technet.microsoft.com/en-us/library/ee748656.aspx
    – Waqas Sarwar MVP
    Commented Jun 3, 2015 at 23:43
  • Yes, I ran Set-SPDiagnosticConfig -EventLogFloodProtectionEnabled still no luck. Logs are flooded. Commented Jun 3, 2015 at 23:48
  • How many server in farm?did u recycle sp timer services....
    – Waqas Sarwar MVP
    Commented Jun 4, 2015 at 0:28

1 Answer 1

1

I just tried in my farm the below steps and its worked as expcted.

  1. Set-SPLogLevel -TraceSeverity None
  2. Set-SPLogLevel -EventSeverity None

Now all categories showing the none. and i checked the ULS logs, nothing after that.

Another way to stop it, their is one Timer services which is responsible for this called sharepoint tracing services, try to stop on all servers.

  • To Stop net stop SPTrace
  • To start net start SPTrace
1
  • I already did part 1 and 2.But stopping the service did the trick. i had to use net stop SPTraceV4 and not net stop SPTrace. Thanks, and I will look into why the log was flooded later. Commented Jun 4, 2015 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.