none
delete sharepoint diagnostic log files

    Question



  • I have Sharepoint 2007 running on one of my servers. This server is now running out of c:\ disk space, I figured out that C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS size is too big!

    Is there a way I cam backup and delete these log file

    Thanks in advance,
    Peer
    Wednesday, March 04, 2009 2:53 PM

Answers

  • You can safely delete them.  If you want to save them, move them as Daniel says.

    In addition, you can specify a different location for the log files via central admin.

    You can also trim the amount of logging that happens so that the log files are smaller.

    You can also trim the frequency of log file generation in the sense that you can tell sharepoint to keep [x] number of log files around.

    There are some good blog entries on this subject and probably something good on one more MSFT sites.  Do a search and you'll find some good information.
    --Paul Galvin of EMC Consulting, New York area Microsoft MVP - SharePoint Blogging @ http://feeds.feedburner.com/PaulGalvinsSharepointSpace Twitter @ http://www.twitter.com/pagalvin
    Sunday, March 08, 2009 11:59 PM

All replies

  • Hello,

    How many log files are in that location?  If you have older log files that are no longer needed, you can delete them.
    Chris Caravajal: SharePoint Help
    Wednesday, March 04, 2009 2:56 PM
  • Chris,

    Thanks for your quick response! 

    We have about 2000 files and 1500 folders. is there any tools or scripts to do it or I have to munally delete them?

    Thanks again,
    Peter
    Wednesday, March 04, 2009 3:02 PM
  • Hi Peter,

    there's no tool or script i know of.

    A very good best practice is to move the path of the logs to another disk than the system.

    Cheers,


    Daniel Bugday

    Web: SharePoint Forum Blog: Daniel Bugday's SharePoint Blog

    Wednesday, March 04, 2009 7:29 PM
  • You can safely delete them.  If you want to save them, move them as Daniel says.

    In addition, you can specify a different location for the log files via central admin.

    You can also trim the amount of logging that happens so that the log files are smaller.

    You can also trim the frequency of log file generation in the sense that you can tell sharepoint to keep [x] number of log files around.

    There are some good blog entries on this subject and probably something good on one more MSFT sites.  Do a search and you'll find some good information.
    --Paul Galvin of EMC Consulting, New York area Microsoft MVP - SharePoint Blogging @ http://feeds.feedburner.com/PaulGalvinsSharepointSpace Twitter @ http://www.twitter.com/pagalvin
    Sunday, March 08, 2009 11:59 PM