top of page

How to Clean up Crawl History in SharePoint 2010

Nithin Janardhanan

Updated: Apr 11, 2023

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 🙂

2 views0 comments

Comments


CONTACT ME

  • Black LinkedIn Icon

Thanks for submitting!

This form no longer accepts submissions.

Enterprise Architect

Phone:

Available on request

Email:

© 2023 by Nithin Janardhanan.

bottom of page