SharePoint Online Search Crawl Logs.
You can view the Crawl Logs in SharePoint Online using the Office 365's eDiscovery site template and by granting the eDiscovery managers security group the appropriate permissions to read crawl logs from your tenant.
Create a new subsite of eDiscovery case site template under eDiscovery site.
Navigate to your case site and now create a new eDiscovery set either using the left-side navigation or using the +new item under ‘Identify and Hold’ section.
- Give it a name
- In the Sources section, click the ‘Add & Manager Source’ link, which will open a popup box. In this popup box, in the Locationssection, ensure you add all the Site Collection URLs that contain searchable content and for which you want to collect the crawl logs. After adding all the sources, then click Ok. Here is a screenshot from my tenant
- You can click on the ‘Get Statistics’ button to show the Items count and size.
- You can also click on the ‘Preview Results’ button which open a popup, then click on the ‘SharePoint’ tab to view the results listed.
- Finally, ‘Save’ your eDiscovery set.
Now create a new Query. You can do this from left-side navigation or using the +new item link under ‘Search and Export’.
- Give it a name
- For ‘Sources’ click on ‘Modify Query Scope’ and in the pop select the eDiscovery set that was created in step 5.
- Now click on the ‘Search’ button to see the statistics (items and size) updated under Sources and also check the results listed in theSharePoint tab down below.
- Save your query.
Open up your Query and click the ‘Export’ button at the bottom of the page. This will lead to Export: New item page. In this page, we don’t have to change anything as we are not concerned with Exchange mailbox logs or the versions of SharePoint documents.
Note: If you checked the ‘Include versions for SharePoint documents’ checkbox, then be aware that this could increase the file size of the export depending on the size of your libraries that has versioning enabled.
Click OK & Download the report