Console Logs API
The Console Logs API is a secure REST API that provides console logs.
Get Console Logs
This endpoint allows you to get console logs of specific solve.
Get Console Logs for a solve
GET
https://api.decisionrules.io/consoleLogs/:correlationId
Query Parameters
Headers
If you're using the Regional Cloud version of DecisionRules, read more about API calls here.
You can get the correlationId parameter from the response Header of the Rule Solver API. The correlation id is stored under the response header key X-Correlation-Id. It is generated by the solver upon every run unless the user specifies their own correlation id in the request header.
Note that console logs are only generated in debug mode. If you are using Test Bench, just click the Debug button. If you are sending requests via the Rule Solver API, you can activate debug mode by providing your request with the X-Debug header set to "true".
Console Logs lifetime
The console logs are stored for 10 minutes at this moment.
Response
The logs themselves are different for each type of rule. However, the basic structure of the response is always the same. It will be similar to the following.
Last updated