Retrieving logs

Once a user has been granted access to logs, they can retrieve crawler logs. The easiest way to do this is through the SharePoint PnP PowerShell cmdlet, Get-PnPSearchCrawlLog (https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpsearchcrawllog?view=sharepoint-ps). Follow these steps to do so:

  1. From a PowerShell prompt, run Connect-PnPOnline -Url https://tenant.sharepoint.com -Credentials (Get-Credential) and provide the credentials for a user added to the crawl log permissions list.
  2. Run Get-PnPSearchCrawlLog to display the most recent entries.

You can filter the crawl log to find information related to sites in your tenant, such as crawl log errors or warnings, as shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset