# Source: https://www.aptible.com/docs/how-to-guides/observability-guides/papertrail-log-drain.md

> ## 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="" data-og-width="603" width="603" data-og-height="306" height="306" data-path="images/papertrail1.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=5091832e4d31ec7128878cea2b06cb57 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=46f8d6bade9d8cf0b3b1b9032503018f 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=871e6ee97e7c513d7ea3b78282436bb2 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=7dd7940c2aae96cfe102a6f59864fe97 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=38d32035d9aca65ddb43c2b930aea617 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail1.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=c4a32780c76c79efa7557159d199082a 2500w" />

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=ab76351e672a1b9eaf76ccec6965dd8c" alt="" data-og-width="827" width="827" data-og-height="425" height="425" data-path="images/papertrail2.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=b6612ffa2cd521e3db0454b27c682387 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=bd4b527281413ec80283c4d50ed21fae 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=9657a1fd32db698182ced9ed8bf42561 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=1f8f324f181cfc86e8461a706daeb983 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=75140a624123a40ce1b6f3634586e4b3 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail2.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=575097af203433f7714c7390f1a4737e 2500w" />

<img src="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=6d6896a82618bee541a49981e032d53a" alt="" data-og-width="803" width="803" data-og-height="230" height="230" data-path="images/papertrail3.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=a873c613629314423c9502fdc066cd00 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=85e20d73889156d51f33ea3a4c6188b5 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=ab4706600e5eef516e11c68b99e09321 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=2a501bb67b6302e6da136bd4f8b09994 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=27fd6f8a9965051649eb8bec0e7ce802 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail3.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=a38d1176bf15654a4b1d56d173e2d107 2500w" />

**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="" data-og-width="827" width="827" data-og-height="425" height="425" data-path="images/papertrail4.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=0223402ea25f85339e4e3c5f61d110fd 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=c9820372badee4d2dd29b40286730d70 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=a2d0479b7a74d6909c5b58c7aba3eff5 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=ec9b5a4551dc2f204a6051392179b347 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=8ce21fd5338d84b793964ccd013afe73 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail4.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=f9d416445e4261dac4eaa8461460493f 2500w" />

## 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="" data-og-width="1280" width="1280" data-og-height="883" height="883" data-path="images/papertrail5.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=8c2797a408fc22bac1cb51b1e3c66481 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=84733d90dcb634e0eed0f9d638bc8a2c 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=80764a482506d7379235b1c349185b95 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=78d1cec510fcad4f24a1eccebebc2f18 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=910bf12b8851c41cbd6ed53132c7bb42 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail5.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=02ec4d10d00796bb3dfa3f5eef006d38 2500w" />

**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="" data-og-width="1280" width="1280" data-og-height="883" height="883" data-path="images/papertrail6.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=280&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=802869038e44fca57e40ad9771b0aba8 280w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=560&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=a59b3642d066e4bfb83fe7aa267c6eb2 560w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=840&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=c93bcf3b9a84fad82268351aae29daf8 840w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=1100&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=e64b4a842f9457053a4f42f2ac95e38c 1100w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=1650&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=7bdf76409ee71f4d6d6c67c9b2cb9624 1650w, https://mintcdn.com/aptible/opX5eNKf32ujRi0n/images/papertrail6.png?w=2500&fit=max&auto=format&n=opX5eNKf32ujRi0n&q=85&s=e42141d226a58a5508868d1fbaf9f428 2500w" />

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