Get a Log File of a Virtual Service

To get a log snapshot of all instances (replicas) of a Virtual Service either as JSON or as GZIP file, you need to know the your Workspace identifier and the Virtual Service identifier. The sample code uses a serviceMockId of 1234 and a workspaceId of 123456. Use the actual ID values of your Workspace and Virtual Service.

In order to get the latest logs, always call https://mock.blazemeter.com/api/v1/workspaces/service-mocks/log/refresh first.

Minimum Parameters for Requesting a Log File of a Virtual Service

The following parameters are the base parameters required to request a log file of a Virtual Service.

 

Log File of Virtual Service Request Attributes

Attributes

Request Log File of Virtual ServiceMinimum Configuration Sample

curl 'https://mock.blazemeter.com//api/v1/workspaces/{workspaceId}/service-mocks/{serviceMockId}/log' \
    -X GET \
    -H 'accept: application/json;charset=UTF-8'

Response200 OK

{}