Get-PnPSearchCrawlLog
SYNOPSIS
Returns entries from the SharePoint search crawl log. Make sure you are granted access to the crawl log via the SharePoint search admin center at https://
Allows to retrieve entries from the SharePoint search crawl log. To be able to use this command you need to grant access to the crawl log via the SharePoint search admin center at https://
Returns the last 100 crawl log entries for site content. Returns the last 100 crawl log entries for OneDrive content. Returns the last 100 crawl log entries for user profiles. Returns the last 100 crawl log entries for user profiles with the term "mikael" in the user principal name. Returns the last 10 crawl log entries with a state of Error for site content. Returns the last 100 crawl log entries up until 100 days ago. Returns the last 3 crawl log entries showing the raw crawl log data. Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. Content to retrieve (Sites, User Profiles). Defaults to Sites. End date to stop getting entries from. Default to current time. Filter to limit what is being returned. Has to be a URL prefix for SharePoint content, and part of a user principal name for user profiles. Wildcard characters are not supported. Filter what log entries to return (All, Success, Warning, Error). Defaults to All Show raw crawl log data Number of entries to return. Defaults to 100. Start date to start getting entries from. Defaults to start of time.SYNTAX
Get-PnPSearchCrawlLog [-LogLevel <LogLevel>] [-RowLimit <Int32>] [-Filter <String>]
[-ContentSource <ContentSource>] [-StartDate <DateTime>] [-EndDate <DateTime>] [-RawFormat]
[-Connection <PnPConnection>] [<CommonParameters>]
DESCRIPTION
EXAMPLES
EXAMPLE 1
Get-PnPSearchCrawlLog
EXAMPLE 2
Get-PnPSearchCrawlLog -Filter "https://contoso-my.sharepoint.com/personal"
EXAMPLE 3
Get-PnPSearchCrawlLog -ContentSource UserProfiles
EXAMPLE 4
Get-PnPSearchCrawlLog -ContentSource UserProfiles -Filter "mikael"
EXAMPLE 5
Get-PnPSearchCrawlLog -ContentSource Sites -LogLevel Error -RowLimit 10
EXAMPLE 6
Get-PnPSearchCrawlLog -EndDate (Get-Date).AddDays(-100)
EXAMPLE 7
Get-PnPSearchCrawlLog -RowFilter 3 -RawFormat
PARAMETERS
-Connection
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentSource
Type: ContentSource
Parameter Sets: (All)
Accepted values: Sites, UserProfiles
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-EndDate
Type: DateTime
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Filter
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LogLevel
Type: LogLevel
Parameter Sets: (All)
Accepted values: Success, Warning, Error, All
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RawFormat
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RowLimit
Type: Int32
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-StartDate
Type: DateTime
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
RELATED LINKS