Retrieve Logs
API Explorer: /sessions/{sessionId}/reports/{reportId}
To get high level summary statistics, use the sessionId and /sessions/{sessionId}/reports/logs endpoint. The sample code returns the logs created for the sessionId of r-v4-5c7e9d133be89. Use the sessionId of the actual test run in place of r-v4-5c7e9d133be89.
Note: The reportId mentioned in the API explorer is always logs for this case.
The response contains an array that contains the full list of files generated by the session.
Retrieve Logs
curl 'https://a.blazemeter.com/api/v4/sessions/r-v4-5c7e9d133be89/reports/logs' \
--user 'api_key_id:api_key_secret'
Retrieve Logs Response Attributes
Attributes
-
hashstringThere will always be
logs. -
namestringThere will always be
logs. -
typestringThere will always be
logs. -
idstringThere will always be
logs. -
session_idstringThe
sessionIdthese logs refer to -
dataUrlstringThe data URL for this API, which contains just the information provided in the
dataattribute -
dataarrayThe list of logs and files created by this test
Show/Hide Child Attributes
-
titlestringThe name of the file (without the extension)
-
filenamestringThe filename of the file
-
dataUrlstringThe link to the file. This link remains active for 20 minutes
-
tailDataUrlstringThe URL of the tail data for the file. If this does not exist for a specific file, it will return
false
-
-
locationstringThe location id the session was run in
-
locationIdstringThe location id the session was run in
Response200 OK
{
"api_version": 4,
"error": null,
"result": {
"hash": "logs",
"name": "Logs",
"type": "Logs",
"source": "",
"id": "logs",
"session_id": "r-v4-5c7e9d133be89",
"dataUrl": "https://a.blazemeter.com/api/latest/sessions/r-v4-5c7e9d133be89/reports/logs/data",
"data": [
{
"title": "artifacts",
"filename": "artifacts.zip",
"dataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/artifacts.zip?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=928903b613480cda069598e416f22e664bcb4116003602bb9470ced84bcbdc0c",
"tailDataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/artifacts.zip.tail.bz?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=4b3c38421f36312dea37d8380754d3eb644a46344d476b482ecb45f2d890ee0e"
},
{
"title": "bzt",
"filename": "bzt.log",
"dataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/bzt.log?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=2d80eca93463d3b2babcc33058c40b9b8cc9b702aec53ae9362bc634f4cdd5f4",
"tailDataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/bzt.log.tail.bz?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=5e83398f924d68a624d147decad04ad2c56da9b59b30f8fa128e7bb4968ed583"
},
{
"title": "cloud-launcher",
"filename": "cloud-launcher.log",
"dataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/cloud-launcher.log?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=a96af0770b482e8aedd8d08bb8a9b27cfcf3182c154f1353bea87d3f990dc050",
"tailDataUrl": false
},
{
"title": "jmeter",
"filename": "jmeter.log",
"dataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/jmeter.log?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=7b38f5a0c810edc8f68233b88dc92dd297b41455a9d26db259bdcc89ca42a4ca",
"tailDataUrl": "https://storage.blazemeter.com/blazemeter-gcp/masters/30792192/sessions/r-v4-5f50ecd1568ef/jmeter.log.tail.bz?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EE7F7ZECFQG2AMFT47JPCFCTXTGEW52TQE7AA2Y6DS4SCW37UO4ZSCNI%2F20200903%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200903T201721Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=a9f63eb3f76f79f822e85ac4253fa4001ef34a127d0e7c92daf9c0976b38f0e4"
}
],
"location": "us-east4-a",
"locationId": "us-east4-a",
"overrideLocationId": null
}
}