> ## 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":

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=b51a35219ff8b763b8be82238b9f6758" alt="" width="603" height="306" data-path="images/papertrail1.png" />

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=ab76351e672a1b9eaf76ccec6965dd8c" alt="" width="827" height="425" data-path="images/papertrail2.png" />

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=6d6896a82618bee541a49981e032d53a" alt="" width="803" height="230" data-path="images/papertrail3.png" />

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

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=90c709267a5f36a41d9b8a75bf69528b" alt="" width="827" height="425" data-path="images/papertrail4.png" />

## Set up a Log Drain

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

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=acdad75ed3e4818ba96415e96edaa9ff" alt="" width="1280" height="883" data-path="images/papertrail5.png" />

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

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=dcaea83cc5ecbb0ed1a00ce092f1f622" alt="" width="1280" height="883" data-path="images/papertrail6.png" />

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