Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 2.75 KB

list-all-logs.adoc

File metadata and controls

70 lines (56 loc) · 2.75 KB

List Log Messages

logo cloud active logo hybrid disabled logo server disabled logo pcf disabled

Tip
This document deals with calling the CloudHub API. For instructions on how to perform these same tasks more easily via the Runtime Manager UI, see CloudHub and its child pages.

Use the GET operation on /applications/{application}/logs resource to list all log messages. This call returns a maximum of 10,000 lines of log data for each invocation. However, using repeated calls with contiguous time windows as search criteria, the entire log may be downloaded.

The following query parameters are supported:

Name Default Description

limit

0

The number of rows to return.

offset

0

The row to start listing log messages at.

startDate

The start date to search for log messages. In ISO-8601 format.

endDate

The end date to search for log messages. In ISO-8601 format.

search

The text that messages must match.

priority

The log level priority to return - DEBUG, INFO, WARN, ERROR, SYSTEM, CONSOLE.

worker

The worker to return logs for, starting from 0.

Example Request:

GET https://anypoint.mulesoft.com/cloudhub/api/applications/exampleapp/logs?limit=1

Example Response:

200 OK
Content-Type: application/json
Server: Apache-Coyote/1.1
Date: Sun, 18 Jan 2015 00:12:55 GMT

{
  "data": [
    {
      "message": "Deploying application to 1 workers.",
      "priority": "SYSTEM",
      "sequenceNumber": 1343797858127,
      "timestamp": 1344872571834
    }
  ],
  "total": 528
}
Tip

Check out the API Portal of the CloudHub API to see an interactive reference of all the supported resources, methods, required properties and expected responses.

In the link above, search among other Mule APIs for the "CloudHub" API and click on its latest version.