HTTPS Log Drains

Tip

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.

Enclave 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:

{
  "@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"
}