Skip to main content
Best Answer

Save audit trail filters


bevpie
Contributor III
Forum|alt.badge.img
  • Contributor III
  • 22 replies

Is there a way to save a default list of audit trail filters?

Best answer by samuel.adams

Hi @bevpie,

It isn’t possible to save any Audit Trail filters at this time, unfortunately. This might be an excellent candidate for an Idea suggestion.

I imagine that you have specific types of Audit Trail data that you want to export from the system on a regular basis? The only way I can imagine doing this today is via API requests, possibly through an application like Postman.

If you feel you have technical know-how 🤓 to do API-based operations, follow the next steps:

  1. In Docebo Learn, fill out the specific Audit Trail events, filters, and time ranges that you want to extract.
  2. Open the Dev Tools, open the Networks tab, and find the POST request for /audittrail/v1/audittrail. Copy the entire request as cURL.
  3. Post the cURL output into Postman when selecting “Import” for a new request. This should give you at least the base structure of the request. 
  4. For future requests, you’ll likely need to update the authentication header and timeframe data in the POST body.
  5. Send the POST request and you’ll receive a "queryExecutionId" in the response.
  6. Include this execution ID in a new request: POST /audittrail/v1/audittrail/{execution_id}/download. The response will give you the URL to access the download link to the CSV file.
View original
Did this post help you find an answer to your question?

2 replies

samuel.adams
Docebian
  • Docebian
  • 11 replies
  • Answer
  • July 3, 2024

Hi @bevpie,

It isn’t possible to save any Audit Trail filters at this time, unfortunately. This might be an excellent candidate for an Idea suggestion.

I imagine that you have specific types of Audit Trail data that you want to export from the system on a regular basis? The only way I can imagine doing this today is via API requests, possibly through an application like Postman.

If you feel you have technical know-how 🤓 to do API-based operations, follow the next steps:

  1. In Docebo Learn, fill out the specific Audit Trail events, filters, and time ranges that you want to extract.
  2. Open the Dev Tools, open the Networks tab, and find the POST request for /audittrail/v1/audittrail. Copy the entire request as cURL.
  3. Post the cURL output into Postman when selecting “Import” for a new request. This should give you at least the base structure of the request. 
  4. For future requests, you’ll likely need to update the authentication header and timeframe data in the POST body.
  5. Send the POST request and you’ll receive a "queryExecutionId" in the response.
  6. Include this execution ID in a new request: POST /audittrail/v1/audittrail/{execution_id}/download. The response will give you the URL to access the download link to the CSV file.

bevpie
Contributor III
Forum|alt.badge.img
  • Author
  • Contributor III
  • 22 replies
  • July 12, 2024

Thanks for the reply. This is one update I do not like. I used to be able to open the audit trail and see all entries together. I don’t like having to choose filters, I want to see everything. The API option isn’t going to work for us, but I appreciate the suggestion.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings