# Set Up Document Tracking

Document tracking reports metadata about documents when they pass through various stages in the indexing process. For example, when a connector finds a new document and sends it for ingestion, a document tracking event is created that shows the document has been added. Document tracking can help you detect problems with the indexing process.

You can write document tracking events to a database, log file, or IDOL Server. For information about how to set up a database to store document tracking events, refer to the IDOL Server Administration Guide.

To enable Document Tracking

1. Open the connector's configuration file.
2. Create a new section in the configuration file, named `[DocumentTracking]`.

3. In the new section, specify where the document tracking events are sent.

   - To send document tracking events to a database through ODBC, set the following parameters:

     `Backend` | To send document tracking events to a database, set this parameter to `Library`.
     `LibraryPath` | Specify the location of the ODBC document tracking library. This is included with IDOL Server.
     `ConnectionString` | The ODBC connection string for the database.

     For example:

         [DocumentTracking]
         Backend=Library
         LibraryPath=C:\Autonomy\IDOLServer\IDOL\modules\dt_odbc.dll
         ConnectionString=DSN=MyDatabase

   - To send document tracking events to the connector's synchronize log, set the following parameters:

     `Backend` | To send document tracking events to the connector's logs, set this parameter to `Log`.
     `DatabaseName` | The name of the log stream to send the document tracking events to. Set this parameter to `synchronize`.

     For example:

         [DocumentTracking]
         Backend=Log
         DatabaseName=synchronize

   - To send document tracking events to an IDOL Server, set the following parameters:

     `Backend` | To send document tracking events to an IDOL Server, set this parameter to `IDOL`.
     `TargetHost` | The host name or IP address of the IDOL Server.
     `TargetPort` | The index port of the IDOL Server.

     For example:

         [DocumentTracking]
         Backend=IDOL
         TargetHost=idol
         TargetPort=9001

   For more information about the parameters you can use to configure document tracking, refer to the Hadoop Connector Reference.

4. Save and close the configuration file.

_FT_HTML5_bannerTitle.htm