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 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

  • serviceMockId integer

    required

    The Virtual Service identifier

  • workspaceId integer

    required

    The Workspace identifier

  • limit integer

    required

    How many log entries to be requested from the mock services.

Request Log File of Virtual ServiceMinimum Configuration Sample

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

Response200 OK

{}