Query Manipulation Server 25.3
Query Manipulation Server Help

# Use Document Tracking (QMS events only)

QMS can push information about events to your Statistics Server through the document tracking feature. To record statistics, you must ensure that Statistics Server is running.

To push events through document tracking

1. Open the QMS configuration file.

2. In the `[DocumentTracking]` section, set the following configuration parameters:

   Backend | The type of document tracking backend to use. Set this parameter to `Library`.
   LibraryPath | The path to the library that you want to use. Set this parameter to `dt_lua` (on Windows) or `libdt_lua` (on Linux).
   LuaScript | The path of the Lua script to run. There is an example script included with QMS. To use the example script set this parameter to `scripts/qms-rules-statsserver.lua`.
   LuaFunction | The function to run in the Lua script. To use the example script, set this parameter to `process`.

   For example:

       [DocumentTracking]
       Backend=Library
       LibraryPath=dt_lua
       LuaScript=scripts/qms-rules-statsserver.lua
       LuaFunction=process

3. If you are using the example Lua script, (`scripts/qms-rules-statsserver.lua`), open the script file. At the beginning of the script are some values that you might need to change:

   `stats_host` | The host name or IP address of your Statistics server.
   `stats_port` | The event port of your Statistics server (as defined by the EventPort parameter in the Statistics Server configuration file).

4. Save and close the Lua script and QMS configuration file.

Copyright 2025 Open Text
Version 25.3 | Last updated July 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Query Manipulation Server 25.3

Topic Title: Use Document Tracking (QMS events only)