# Send Documents to CFS

To send documents to CFS, use the following procedure.

To send documents to CFS

1. Create a new configuration to send to Media Server with the `process` action, or open an existing configuration that you want to modify.

2. In the `[Session]` section, add a new task by setting the `EngineN` parameter. You can give the task any name, for example:

       [Session]
       Engine0=CFS

3. Create a new configuration section to contain the task settings, and set the following parameters:

   `Type` | The output engine to use. Set this parameter to `CFS`.
   `CfsHost` | The host name or IP address of your CFS.
   `CfsPort` | The ACI port of your CFS.
   `XslTemplate` | The path to the XSL template to use to transform records into documents. Media Server includes an XSL template for sending documents to CFS (`configurations/xsl/toCFS.xsl`) in the Media Server installation directory.
   `Input` | (Optional) A comma-separated list of the tracks that you want to output. Specify one or more tracks. If you do not set this parameter, the engine outputs all tracks that are configured by default as 'output' tracks. For information about whether a track is considered an 'output' track, refer to documentation for your analysis, encoding, and ESP engines in the Media Server Reference.

4. Configure how to combine records into documents. For information about how you can combine records, see Choose How to Output Data.

   - To output data in single record mode, set `Mode=SingleRecord`.
   - To output data in time mode, set `Mode=Time` and use the `OutputInterval` parameter to specify the amount of video content represented by each document.
   - To output data in event mode, set `Mode=Event` and use the `EventTrack` parameter to specify the event track.
   - To output data in bounded event mode, set `Mode=BoundedEvent` and use the `EventTrack` parameter to specify the event track.
   - To output data in at-end mode, set `Mode=AtEnd`.
   - To output data in page mode, set `Mode=Page`.

5. Save and close the configuration file. Micro Focus recommends that you save your configuration files in the location specified by the `ConfigDirectory` parameter.

Example

The following is an example configuration to send documents to CFS.

    [CFS]
    Type=CFS
    CfsHost=localhost
    CfsPort=7000
    XSLTemplate=toCFS.xsl
    Mode=time
    OutputInterval=20s

_FT_HTML5_bannerTitle.htm