Unable to export Audit logs.
Issue: Unable to export Audit logs when filtered by week / month.
If Audit Logs contain a significant number of items, it might result in limitations when attempting to export them with the applied filters like by last week / by last 30 days.
Error Screenshot:
Root Cause: Too many entries for Audit logs.
Resolution:
- Consider selecting a per-day range when filtering the Audit Logs for export. This will help to enhance the success rate of the export process and reduce the likelihood of any errors or issues
- Since there is no User Interface for selecting a date range on Orchestrator,
- Consider doing it from API. Orchestrator allows users to perform an asynchronous export of Audit Logs using the API. This option enables background processing of the export request, allowing for more efficient and reliable handling of larger datasets.
Example:
- Go to UiPath Orchestrator’s Swagger UI: https://your-orchestrator-instance-url/swagger/index.html
- Navigate to the ‘AuditLogs’ section, and locate the ‘POST /odata/AuditLogs/UiPath.Server.Configuration.OData.Export’ endpoint
- Enter the required parameters for the export request, including ‘odataFilter’ and ‘timeRangeFilter’
- Execute the API call. Upon successful execution, an Export Task ID will be received
- To check the status of the Export task and retrieve the generated export file upon completion, utilize the ‘GET /odata/ExportTasks({id})’ endpoint with the Export Task ID received in step 4.