Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Log Session API

« API Overview

The Log Session resource allow you to create a log session which can be used to retrieve log data. Log sessions are short-lived and we recommend using the log Drains to integrate with your own and 3rd party services.

Create Log Session

Creates a log session. The log session is valid for 1 minute and has to be accessed before it expires. Keep the connection open to continue to retrieve log messages after that.

IMPORTANT: Adding hostnames to an application incurs a cost, see the pricing page for details.

Request

POST /applications/:slug/logsession

Request Parameters

tail Required Boolean value indicating whether you want to start a tail log session
limit Required The number of logs to fetch on the initial request
sourceFilter Optional Only receive log messages from this source when specificed
processFilter Optional Only receive log messages from this process when specificed

Response

Status: 201 Created
Location: https://logplex.appharbor.com/sessions/:id

Back to overview