top of page
  • Nithin Janardhanan

How to Clean up Crawl History in SharePoint 2010

Updated: Apr 11

Your crawl history can be a pain in the ass when the logs pile up..

SharePoint stores the crawl details in the following tables…

  1. “Msscrawlhostlist” table contain hostname with hostid.

  2. “MssCrawlHostsLog” table stores the hosts of all the URLs processed in the crawl.

  3. “MssCrawlUrlLog” table keeps track of the history of errors encountered in the crawls.

When you have not set the retention period it keeps around 90 days of crawl logs…

You could clean up the crawl logs for a shorter period using powershell…

Get the Search Service Application ID:

  1. Get-SPServiceApplication

Get the Search Service Application object:

  1. $searchSvcApp = Get-SPServiceApplication | Where {$_.Id -eq “Search Service Application ID”}

Set the CrawlLogCleanUpIntervalInDays property:

  1. Set CrawlLogCleanUpIntervalInDays.

  2. $searchApp.CrawlLogCleanUpIntervalInDays = Retention Period

  3. $searchApp.Update()

Hope it helps

Happy Hunting 🙂

#crawl #Search #sharepoint2010

0 views0 comments
bottom of page