Contact Free trial Login

Working with Logs

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

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.

The logs API allows you to search your logs. All resources or methods that return or accept a type (except where noted) use the application JSON type. As an example, here’s an example of what the result from a log search looks like.

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

Log Object Properties

The following are the properties for applications.

Property Description

message

The log message.

priority

The priority - DEBUG, INFO, ERROR, SYSTEM, CONSOLE.

timestamp

The timestamp in UTC when the log message occurred.

sequenceNumber

A sequence number which determines the order of the log messages when they have the same timestamp.

Operations for Logs

The following is a summary of log related operations:

Operation Resource Description

GET

/api/applications/{application}/logs

Lists log messages

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 API Portal, search among other Mule APIs for the CloudHub API and enter its latest version.