> ## 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.

# How to set up a Papertrail Log Drain

> Learn how to set up a PaperTrail Log Drain on Aptible

## Set up a Papertrail Logging Destination

**Step 1:** Sign up for a Papertrail account.

**Step 2:** In Papertrail, find the "Log Destinations" tab. Select "Create a Log Destination," then "Create":

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=b51a35219ff8b763b8be82238b9f6758)

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=ab76351e672a1b9eaf76ccec6965dd8c)

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=6d6896a82618bee541a49981e032d53a)

**Step 3:** Once created, note the host and port Papertrail displays for your new log destination.

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=90c709267a5f36a41d9b8a75bf69528b)

## Set up a Log Drain

**Step 1:** In the Aptible dashboard, create a new [log drain](https://www.aptible.com/docs/core-concepts/observability/logs/log-drains/overview.md) by navigating to the "Log Drains" tab in the environment of your choice:

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=acdad75ed3e4818ba96415e96edaa9ff)

**Step 2:** Select Papertrail as the destination.

![](https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?fit=max\&auto=format\&n=opX5eNKf32ujRi0n\&q=85\&s=dcaea83cc5ecbb0ed1a00ce092f1f622)

**Step 3:** Input the host and port you received earlier and save your changes.
