Skip to content

Download the profiler session log file in .zip format. Results are available 15 minutes after a session has ended.

GET/api/{version}/logs/query/profiler/{session_name}/results
NameDescription
Acceptapplication/zip
NameDescription
{session_name}The name of the session for which to download results.
curl -X GET -H "Authorization: {SESSION_ID}" \ -o profiler_results.zip \ https://{vault_dns}/api/v26.2/logs/query/profiler/test_session__c/results

Content-Type: application/zip;charset=UTF-8
Content-Disposition: attachment;filename="query_profiler__c.zip"

On SUCCESS, Vault retrieves the log from the specified date as a .zip file. The HTTP Response Header Content-Type is set to application/octet-stream. The returned CSV log includes the following data:

NameDescription
timestampTimestamp of the query execution.
user_idID of the user who ran the query.
user_nameUsername of the user who ran the query.
query_idUnique identifier for the query. The log generates exactly one row per query_id.
query_stringThe VQL query string executed by the user. Maximum query length is 50,000 characters.
execution_idExecution ID of the initial query. This ID is also exposed in API usage logs.
query_targetThe specific query target for the query.
query_typeThe type of query, one of EXECUTE, COUNT, VALIDATE, or SHOW.
query_originThe source of the query: API, SDK, or ALL.
api_versionThe API version used when executing the query with Vault API.
response_statusThe response status of the initial query.
errorError message, if any, truncated to 1,500 characters.
warningsWarning messages, if any, truncated to 1,500 characters.
error_typeThe specific type of error encountered.
num_records_returnedTotal number of records returned on the primary query.
num_pages_returnedTotal number of pages returned for the primary query.
num_records_accessedNumber of records accessed on the primary query. This value is aggregated if the same page is accessed multiple times.
num_pages_accessedNumber of pages accessed on the primary query.
query_execution_timeExecution time for the initial query.
query_execution_time_subsequent_pagesAggregate execution time for all subsequent pages.