TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
GroupsHostgroupsMetersMetricsProduct
PluginsRelaysSourcesSource-TagsSynchronize Data
Tenants
Terms

GET/v1/relays/:relay/output/:since

Queries for relay output messages.

URL Parameters

relay

Hostname of the relay

since

If proceeded by an underscore, pulls N items from end of log, if not, finds all items beyond index

Example request

curl https://api.truesight.bmc.com/v1/relays/myrelay/output/_50 \
-X GET \
-u <email>:<api-token>

Returns an array of arrays. Each array has two items. The first is the message ID # in monotonically increasing order. The second is a message object with the same properties specified when adding a message.

Example response

{
   "result": [
      [
         5,
         {
            "type": "info",
            "plugin": null,
            "msg": "some message",
            "ts": 1380581486
         }
      ],
      [
         6,
         {
            "type": "info",
            "plugin": "myplugin",
            "msg": "some plugin message",
            "ts": 1380582486
         }
      ]
   ]
}