> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# aptible log_drain:create:papertrail

This command lets you create a [Log Drain](https://www.aptible.com/docs/core-concepts/observability/logs/log-drains/overview.md) to forward your container logs to Papertrail.

> [!NOTE]
>
> Add a new Log Destination in Papertrail (make sure to accept TCP + TLS connections and logs from unrecognized senders), then copy the host and port from the Log Destination.

# Synopsis

```
Usage:
  aptible log_drain:create:papertrail HANDLE [flags]

Flags:
      --drain-apps                    Drain app logs (default true)
      --drain-databases               Drain database logs (default true)
      --drain-ephemeral-sessions      Drain ephemeral session logs (default true)
      --drain-proxies                 Drain proxy logs (default true)
  -e, --env string                    Environment handle (alias)
      --environment string            Environment handle (required)
      --host string                   Papertrail host (required)
      --no-drain-apps                 Do not drain app logs
      --no-drain-databases            Do not drain database logs
      --no-drain-ephemeral-sessions   Do not drain ephemeral session logs
      --no-drain-proxies              Do not drain proxy logs
      --port int32                    Papertrail port (required)
```
