--- title: Analyze the rebuild process slug: '2147' canonical_url: https://docs.coveo.com/en/2147/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Analyze the rebuild process Rebuilding is the action of crawling a set of items and pushing them into your [Coveo organization](https://docs.coveo.com/en/185/) [source](https://docs.coveo.com/en/246/). At the end of the process, the source is expected to contain only the crawled items. A Coveo index rebuild in Sitecore, whether launched through the Sitecore user interface or the [Coveo Command Center](https://docs.coveo.com/en/2426#rebuilding-a-search-index-manually), includes many steps. Items are first handled by Sitecore and then handed over to Coveo for Sitecore. The best way to understand which Sitecore items are indexed, and how they're indexed, is to monitor activities using the Coveo rebuild logs. This article breaks down Coveo index rebuild log messages and explains what Coveo for Sitecore is actually doing as these messages are being recorded. This article also shows how you can isolate Coveo rebuild logs in a separate file and change the log level to help you diagnose rebuild issues. ## Coveo rebuild phases [Coveo rebuild logs](#coveo-rebuild-logs) are divided into four phases, the same phases you see in the rebuild status bar during a [**Command Center** rebuild](https://docs.coveo.com/en/2426#rebuilding-a-search-index-manually). ![Image of indexing phases in the Command Center during a rebuild | Coveo for Sitecore 5](https://docs.coveo.com/en/assets/images/c4sc-v5/command-center-indexing-step-skipped-numbered.png) ### ![Number one icon for Setup Requirements phase | Coveo](c4sc-v5/one.svg) Setup Requirements phase During this phase, the Sitecore configuration is compared to the resources in the [Coveo Platform](https://docs.coveo.com/en/186/). The sources, fields, and security providers are modified in Coveo to match Sitecore configurations. ### ![Number two icon representing the Sending Permissions phase | Coveo](c4sc-v5/two.svg) Sending Permissions phase During this phase, all Sitecore users and roles are sent to Coveo. This way, Coveo doesn't have to contact the Sitecore instance at query time. ### ![Number three icon representing Sending Documents phase | Coveo](c4sc-v5/three.svg) Sending Documents phase Using the [crawlers](https://docs.coveo.com/en/2159#modifying-a-crawling-root) configured on the search index, Sitecore iterates over a set of items and passes them to Coveo for Sitecore. In most cases, when a document isn't indexed, the reason is that [Coveo for Sitecore hasn't received the item from Sitecore](https://docs.coveo.com/en/2558/). Coveo for Sitecore creates [batches of 10 documents that are uploaded](https://docs.coveo.com/en/90/) in Coveo. The time required to upload all items depends on the number of items, the time to [render the page](https://docs.coveo.com/en/2326/), and the bandwidth of your Internet connection. ### ![Number four icon for Documents Validation phase | Coveo](c4sc-v5/four.svg) Documents Validation phase The `Waiting for Items to Be Searchable` step validates that all items sent to Coveo are being committed and are searchable. It displays the number of committed items and the number of expected items. A rebuild operation replaces the source content with a new set of items. However, the old items have to be removed. The `Removing Old Items` step monitors the old items and ensures they're removed. This process times out after 5 minutes of inactivity. > **Note** > > The Documents Validation phase waits for all steps in previous phases to complete. > For example: > > * The Documents Validation phase pauses while document uploading steps are still in progress. > > * When you create a Coveo organization, the Coveo service has to deploy some components before the organization is fully functional. > This process is called [organization provisioning](https://docs.coveo.com/en/2547/). > Organization provisioning must be completed before steps in the Documents Validation phase can begin. ## Coveo rebuild logs By default, the Coveo rebuild logs are recorded in `log..txt` and `log..