次の方法で共有


SharePoint 2010: No new ULS logs being generated

Problem: Customer discovered that the ULS logs had stopped generating. Within the Logs file there were files but from an old date.

Troubleshooting: I looked in Event viewer and found this:

Tracing Service failed to create the trace log file at location specified in SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\LogDir Error 0x0: The operation completed successfully. . Traces will be written to the following directory: C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp\.

Resolution:

  1. In Central Admin go to Monitoring>>Configure diagnostic logging
  2. changed the ‘Path’ value to C:\Temp and then back to D:\SharePoint\Logs
    (They have the logs being written to the D drive which is common, changing it back and forth resolved this problem)

Fight Comparison
Fedor vs Arlovski:
This was an easy one that was a weird resolution but it worked. Kind of like when Fedor was getting pushed back by Arlovski, and then decided to throw a Hail Mary punch to his face, knocking him out cold.

Comments

  • Anonymous
    January 01, 2003
    Good finding Sal! I'm just wondering whether you can post the Event ID which was showing you the error related to the Tracing Service.
    Thanks!
    • Anonymous
      July 19, 2016
      Hi the event ID is 2163
  • Anonymous
    March 13, 2014
    Thanks it worked!
  • Anonymous
    March 13, 2014
    sometimes it doesn't work if tracing service is using ad account instead of local system account. using ad account it creates a log file of 0kb.
  • Anonymous
    April 14, 2015
    It worked, after I restarted the Tracing service afterwards. Thanks for a good post :o)
  • Anonymous
    July 17, 2015
    Still works in SP 2013. Thanks.
  • Anonymous
    July 24, 2015
    work like a charm, thanks for sharing.
  • Anonymous
    July 24, 2015
    Thanks for Sharing.
  • Anonymous
    August 05, 2015
    this is really helpful when C drive is out of space.
  • Anonymous
    August 05, 2015
    this is really helpful when C drive is out of space.

  • Anonymous
    April 13, 2016
    hi what about the those logs that missed dates , we can found in temp folder?