# Set up Document Tracking with a Log Back End

This section describes how to set up document tracking to store information in an IDOL log file.

To configure document tracking in logs

1. Open the IDOL component configuration file in a text editor.

2. (DIH only) Turn on document tracking by setting the `DocumentTracking` parameter to `True` in the `[Server]` section of the DIH configuration file.

       [Server]
       DocumentTracking=True

   NOTE: If you are using DIH in a unified IDOL Server configuration, set the `DocumentTracking` parameter to `True` in the `[DistributionSettings]` section.

3. Create a `[DocumentTracking]` configuration section.

4. In this `[DocumentTracking]` section, set the `Backend` parameter to `Log`.

5. Set any other configuration parameters for document tracking. For more information, refer to the IDOL Server Reference. For example:

       [DocumentTracking]
       MaxEventsPerFile=500
       TimeoutSeconds=20
       UIDFieldName=UID

6. Find the `[Logging]` configuration section.

7. Configure a new log stream for document tracking, with `LogTypeCSVs` set to `doctrack`. For more information, see Customize Logging.

   For example:

       [Logging]
       LogLevel=FULL
       LogDirectory=Logs
       0=ApplicationLogStream
       1=ActionLogStream
       2=DocumentTrackingLogStream
       ...

       [DocumentTrackingLogStream]
       LogFile=doctrack.log
       LogHistorySize=50
       LogTime=True
       LogEcho=False
       LogMaxSizeKBs=1024
       LogTypeCSVs=doctrack

8. Save and close the configuration file.

   Restart the IDOL component for your changes to take effect.

_FT_HTML5_bannerTitle.htm