Panel |
---|
borderColor | green |
---|
borderWidth | 1 |
---|
titleBGColor | #ddffcc |
---|
borderStyle | solid |
---|
title | Definition |
---|
|
Audit Trail API Trail API will list all records present in the Audit Trail. |
| Name | Description |
---|
1 | List audit trails | Panel |
---|
borderColor | black |
---|
bgColor | #fbfff5 |
---|
borderStyle | solid |
---|
| List all records present in the Audit Trail database table by default. Able to filter or sort the returned results via parameters. |
Name | Description |
---|
URL | /auditTrails | HTTP Method | GET | Query String Parameters | |
|
variables | Workflow variable value(s) to set.
Can be multiple query parameters for many workflow variables |
---|
search | Filters the response by querying the search terms for: - username
- java class
- java method
- output message
Similar to the LIKE operator for database querying. | dateFrom | Filters the response from the specified date and time. Format: YYYY-MM-DD hh:mm:ss (e.g: 2019-08-26 00:00:00) | dateTo | Filters the response to the specified date and time. Format: YYYY-MM-DD hh:mm:ss (e.g: 2019-08-27 23:59:59) | sort | Audit trails data column to sort. Must be used in conjunction with "sortDescending" parameter. | sortDescending | Sort the specified "sort" parameter value in ascending or descending order. Expects a boolean value. Must be used in conjunction with "sort" parameter. | startOffset | Starting position of records to start query. Expects an integer. | pageSize | Number of results to return. Expects an integer. |
| Sample Response | Code Block |
---|
| [
{
"id": "4028e381697072b901697073acec0000",
"username": "roleAnonymous",
"appId": "appcenter",
"appVersion": "1",
"timestamp": "Mar 12, 2019 1:50:22 PM",
"clazz": "org.joget.apps.workflow.security.WorkflowAuthenticationProvider",
"method": "authenticate",
"message": "Authentication for user admin (0:0:0:0:0:0:0:1) : true |
|
|
"
},
{
"id": "4028e381697072b901697073b80d0001",
"username": "roleAnonymous",
"appId": null,
"appVersion": null,
"timestamp": "Mar 12, 2019 1:50:25 PM",
"clazz": "org.joget.apps.app.dao.FormDefinitionDaoImpl",
"method": "update",
"message": "{id:\"user_approval\", appId:\"dashboard\", appVersion:\"1\", name:\"User Approval Form\", dateCreated:\"2018-11-14 14:20:31.0\", dateModified:\"Tue Mar 12 13:50:25 SGT 2019\"}