| API endpoint | Available from |
|---|---|
| ThoughtSpot Cloud ts7.april.cl |
Audit logs API
The log API endpoint allows you to fetch security audit logs programmatically from the ThoughtSpot system.
Supported operationsπ
Required permissionsπ
Requires administrator privilege.
Resource URLπ
GET /tspublic/v1/logs/topics/{topic}
Request parametersπ
By default, the API retrieves logs for the last 24 hours. You can set a custom duration in EPOCH time. Make sure the log duration specified in your API request doesnβt exceed 24 hours. If you must fetch logs for a longer time range, modify the duration and make multiple sequential API requests.
|
Note
|
When fetching logs via API, there can be a 30-minute delay between the actual event time and when that event is available via the logs API endpoint. |
| Parameter | Type | Description |
|---|---|---|
| Path | String. Type of the log. The valid value is |
| Query | Epoch time string. The EPOCH time in milliseconds to set the start time for streaming logs. For example, to set the timestamp as June 1, 2021 8 am, specify |
| Query | Epoch time string. The EPOCH time in milliseconds to set the end time for streaming logs. To set the timestamp as June 2, 2021, 8 am, specify |
| Query | Boolean. Fetches logs for all Orgs when set to |
Example requestπ
curl -X GET \
--header 'Accept: application/json' \
'https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/logs/topics/security_logs'
https://{ThoughtSpot-Host}/callosum/v1/tspublic/v1/logs/topics/security_logs