# Document Tracking

### Overview&#x20;

Once processing is triggered for a document, the document can be tracked. There are multiple ways to trigger document processing:&#x20;

1. Process or reprocess a document in Document Queue&#x20;

<figure><img src="https://3990462849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgjpo1gyiI3QKDSNO9maQ%2Fuploads%2F4dONHclpoqQeW1xAfBk9%2FDocTracking.jpg?alt=media&#x26;token=080b3ffa-c556-44b9-a8a2-ba1258751b92" alt=""><figcaption></figcaption></figure>

1. Document is automatically received through an integration. &#x20;

The Document Tracking tab under the Monitoring section of the web client allows you to track the complete lifecycle of the document in Docspire from ingestion to final output delivery. &#x20;

<figure><img src="https://3990462849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgjpo1gyiI3QKDSNO9maQ%2Fuploads%2FDtDTINQDk1uWZNqGrUgY%2FProcessingTimeline.png?alt=media&#x26;token=2d7b706c-990e-4d60-a543-35ad9c5f99fa" alt=""><figcaption></figcaption></figure>

### Processing Stages&#x20;

Document Tracking displays real-time status updates for:&#x20;

* **Ingestion** – Document is received manually or via an integration.&#x20;
* **OCR Extraction** – Optical Character Recognition engine extracts text and layout data.&#x20;
* **AI Processing** – Machine learning models classify the document and extract structured data.&#x20;
* **Validation** – Extracted data is validated against business rules or schemas.&#x20;
* **Human Review** – Optional manual verification for low-confidence or flagged results.&#x20;
* **Output Generation** – Validated data is formatted and exported to the defined target system.&#x20;

Each stage is logged with a status, timestamp, and duration, enabling detailed performance analysis and troubleshooting. &#x20;

<figure><img src="https://3990462849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgjpo1gyiI3QKDSNO9maQ%2Fuploads%2FcRgQ7tlPKkv3L6Yw12tp%2FProcessDetails.png?alt=media&#x26;token=5f6e6a1f-47bd-4a93-b618-e94005d3b476" alt=""><figcaption></figcaption></figure>

### Monitoring Capabilities&#x20;

The Document Tracking interface provides:&#x20;

* **Search and Filters** – Query documents by document ID, document name, business ID, status, or date.&#x20;

<figure><img src="https://3990462849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgjpo1gyiI3QKDSNO9maQ%2Fuploads%2FxPOJFYqYfF4hgPFfcQdZ%2FSearchDocument.png?alt=media&#x26;token=0293207d-8934-4dd7-b640-413bab1fa389" alt=""><figcaption></figcaption></figure>

* **Status Indicators** – Visual markers showing the current processing state (e.g., Running, Success, Error).&#x20;
* **Drill-Down View** – Hover over the validation block to view detailed logs and system messages for a specific document.&#x20;

<figure><img src="https://3990462849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fgjpo1gyiI3QKDSNO9maQ%2Fuploads%2FIG2xJLGIo3wraJnCsmkF%2FDocValidation.png?alt=media&#x26;token=bf98a48f-4424-43a1-b2b3-40e6057b651a" alt=""><figcaption></figcaption></figure>

* **Real-Time Updates** – Automatic refresh of processing progress and event logs.&#x20;
* **Audit Trail** – Complete chronological record of all system and user actions related to the document.&#x20;

### Use Cases&#x20;

* Operational Monitoring: Track real-time processing volumes and identify bottlenecks.&#x20;
* Error Analysis: Investigate failed or delayed documents through detailed error logs.&#x20;
* Compliance and Audit: Maintain traceable records of document handling for regulatory requirements.&#x20;
* Performance Optimization: Analyze stage durations to improve processing efficiency.&#x20;

&#x20;

&#x20;

&#x20;

&#x20;
