Back to videos
Product Demos

How to Audit Rule Decisions

This DecisionRules demonstration uses audit logs and Decision Intelligence statistics to inspect individual rule executions and analyze results over time.

To audit rule decisions in DecisionRules, switch on audit logging for the rule and open the result in Decision Intelligence. Audit logs show what the rule received and returned on every execution, statistics show how its results behave across thousands of executions. Petra walks through both on a loan calculation rule.

Audit logging is a setting on each rule. Once it is switched on, every execution of that rule is stored with its input, output and metadata. Debug data, which shows how each condition was evaluated, is a second switch. On the Audit Logs page you filter executions by rule, date range, HTTP status code and correlation ID, then open one record to see the loan amount and duration that came in, the loan metrics that came out, and the timestamp, execution time and status.

Chapters

  • 0:00 Every decision becomes data
  • 0:19 Loan calculation example
  • 0:51 Turn on audit logging
  • 1:11 Find an execution
  • 1:28 Inputs, outputs, debug data and metadata
  • 2:14 Statistics
  • 2:30 Data dictionary
  • 2:54 Frequency distribution
  • 3:35 Time series
  • 4:15 Compare rules
  • 4:31 Raw data
  • 4:50 Four tools
  • 5:16 Audit, analyse and improve

Statistics work across all logged executions of a rule. The data dictionary lists what you can analyse: inputs, outputs and metadata such as version, status and execution time. Frequency distribution shows how values are spread, so common and unusual cases stand out. Time series shows how volume and values change day by day. Comparison draws two rules side by side, so you can see how a change in the logic moves the results. The raw data table leads from any chart back to the individual records.

Frequently asked questions

How do I turn on audit logging for a rule in DecisionRules?

Open the settings of the rule you want to observe and turn on the Audit Logs slider. From then on, the Rule Solver creates an audit log on every call, so you do not need extra logic or storage on your own server to keep the solver's inputs and outputs.

What data is actually stored in an audit log entry?

Each entry securely logs the unique execution ID, the rule ID, the specific version, the timestamp of the request, the execution duration in milliseconds, the final status (success or error), and the complete JSON structures for both the input request and the engine's output response.

How do I load DecisionRules audit logs into Power BI?

Audit logs are read through the Business Intelligence API, which uses its own Business Intelligence API key and the rule ID. In Power BI, a blank query loads the logs page by page so the server is not overwhelmed, joins them into a single table and extracts the rule output for commission dashboards.