Query Manipulation Server 25.3
Query Manipulation Server Help

# Monitor Rule Usage

You can configure QMS to log a message each time it activates a particular rule in the Promotion Agentstore. QMS uses document tracking functionality to log a message when a rule is activated.

Alternatively, you can use document tracking (with a Lua script) to send information to a Statistics Server, so that you can monitor the most frequently used rules. For more information about sending data to Statistics Server, see Record Statistics with Statistics Server.

To configure QMS to log rule usage

1. Open the QMS configuration file in a text editor.

2. QMS only writes log messages about rule activations when document tracking is configured to send events to the log. In the `[DocumentTracking]` section, set the Backend parameter to `Log`. For example:

       [DocumentTracking]
       Backend=Log

3. In the `[Logging]` section, configure a new log stream to log the events. Set LogTypeCSVs to `Events`. For example:

       [Logging]
       ...
       0=ApplicationLogStream
       1=QueryLogStream
       2=EventsLogStream

       [EventsLogStream]
       LogFile=events.log
       LogTypeCSVs=events

   For information about the other configuration parameters you can set to configure logging, refer to the QMS Reference.

4. Save and close the QMS configuration file. Restart QMS for your changes to take effect.

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: Monitor Rule Usage