Aptible PaaS logoDocs

HTTPS Log Drains

📘 For step-by-step instructions on setting up logging to a self-hosted HTTPS Log Drain, review this tutorial: Setting up a self-hosted HTTPS Log Drain.

Aptible can deliver your logs via HTTPS.

The logs are delivered via HTTPS POST, using a JSON Content-Type.

Payload

The payload is structured as follows. New keys may be added over time, and logs from Ephemeral SSH Sessions include additional keys.

{
  "@timestamp": "2017-01-11T11:11:11.111111111Z",
  "log": "some log line from your app",
  "stream": "stdout",
  "time": "2017-01-11T11:11:11.111111111Z",
  "@version": "1",
  "type": "json",
  "file": "/tmp/dockerlogs/containerId/containerId-json.log",
  "host": "containerId",
  "offset": "123",
  "layer": "app",
  "service": "app-web",
  "app": "app",
  "app_id": "456",
  "source": "app",
  "container": "containerId"
}

Specific Metadata

Both Ephemeral SSH Sessions and Endpoint Logs contain additional metadata; see the appropriate documentation for further details.

HTTPS Log Drains