Getting Audit Log API Tokens


#1

The Replicated Vendor Portal uses Retraced to power its embedded audit log, which includes a rich API for querying and exporting audit events. A detailed guide to using the Retraced Viewer’s audit log tokens can be found in The Retraced Documentation.

When using API tokens to communicate with Retraced, the base URL will be https://api.retraced.io. The GraphQL endpoint will be available at https://api.retraced.io/enterprise/v1/graphql. SSH streaming is available at tail.retraced.io.


#2

Is there something more I need to know to connect to graphql retracted on a replicated distibution?
the token created in the audit log tab in replicated management UI is not a valid JWT token and it seems that retracted is expecting JWT
(using the request as described here: https://preview.retraced.io/documentation/exposing-retraced-data/enterprise-api/
and got the reply {“status”:500,“error”:“jwt malformed”,“type”:“Error”})

Thanks in advance!


#3

Ariel,

Please use this endpoint instead of the one that’s documented. This one works with retraced API tokens, which you can manage on the audit-log page.

https://api.replicated.com/auditlog/enterprise/v1/graphql