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
- Open the QMS configuration file.
-
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) orlibdt_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
-
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). - Save and close the Lua script and QMS configuration file.