SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to get last few crawl log details of all of my content sources through powershell.

Basically, its the search service application -> crawl logs -> crawl history -> for any content source I would like to get last 5 logs. I am not sure which direction I should proceed to get this data:When i say logs, I mean this data

Content Source Crawl started Crawl completed Crawl duration Type Successes Warnings Errors Top Level Errors Deletes Not Modified Security Updates

share|improve this question

The easiest thing what you can do is export the crawl logs as a csv through the powershell script as mentioned here :-

Once exported , just fire up Excel and filter the last five. Its rather more flexible working with a csv in excel as you will get many other filter options over your log file.

share|improve this answer
Thanks Moss for replying. I want some kind of monitoring system which just emails me top 5 logs from all my content sources . I don't want to waste my time daily exporting it and then editing it in excel. – EVIA Jul 17 '12 at 13:58
CrawlHistory class is Obsolete,… guess for SP2010. – Karthikeyan Dec 27 '12 at 5:41
This post makes more sense, which i have tested and seems to be working as expected.… – user33542 Sep 18 '14 at 3:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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