Retrieve Logs
API Explorer: /sessions/{sessionId}/reports/{reportId}
To get high level summary statistics, a sessionId
is required. The sample code returns the logs created for the sessionId
of r-v4-5e0a6ec0bc698
. Use the sessionId
of the actual test run session in place of r-v4-5e0a6ec0bc698
.
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 genearated by the session.
If you do not know the ID of the master to start, use List Masters to return a list of your created masters.
Retrieve Logs
curl 'https://a.blazemeter.com/api/v4/sessions/r-v4-5e0a6ec0bc698/reports/logs/data' \
--user 'api_key_id:api_key_secret'
Retrieve Logs Response Attributes
Attributes
-
title
stringThe title used in the naming of the file
-
filename
stringThe filename of the file
-
dataUrl
stringThe link to the file. This link remains active for 20 minutes
-
tailDataUrl
stringThe link to the tail data of this file. This link remains active for 20 minutes
Response200 OK
{
"api_version": 4,
"error": null,
"result": [
{
"title": "artifacts",
"filename": "artifacts.zip",
"dataUrl": "https://blazemeter.s3.amazonaws.com/masters/24456747/sessions/r-v4-5e0a6ec0bc698/artifacts.zip?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJPZOF6U7I33QK2CQ%2F20191230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191230T222343Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=71d4f6e947a80e5987f356be3062fc2c32c4371e663f04a2afdf06e1332f7e25",
"tailDataUrl": "https://blazemeter.s3.amazonaws.com/masters/24456747/sessions/r-v4-5e0a6ec0bc698/artifacts.zip.tail.bz?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJPZOF6U7I33QK2CQ%2F20191230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191230T222343Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=94ecc03b75569797da0e78758831002c1bfab7236ae9b21960d6dc199becb3d7"
},
{
"title": "bzt",
"filename": "bzt.log",
"dataUrl": "https://blazemeter.s3.amazonaws.com/masters/24456747/sessions/r-v4-5e0a6ec0bc698/bzt.log?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJPZOF6U7I33QK2CQ%2F20191230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191230T222343Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=39b7d261668ff9977431bc249778c8d829555a59b555081627da83852baeb0f1",
"tailDataUrl": "https://blazemeter.s3.amazonaws.com/masters/24456747/sessions/r-v4-5e0a6ec0bc698/bzt.log.tail.bz?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJPZOF6U7I33QK2CQ%2F20191230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191230T222343Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Signature=601ddc02acf1e9150d6166d42b7d9bc0e65ac55ca0607264510efa441894afe8"
}
],
"request_id": "5e0a78eee0be8"
}