# Papertrail

Follow the steps below to configure a service so as to extract its related alert data from Papertrail.

Squadcast will then process this information to create incidents for this service as per your preferences.

### Using Papertrail as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

2\. Select **Papertrail.** Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-in-papertrail) it within **Papertrail**. Finish by clicking **Add Alert Source** -> **Done.**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-77b7deb2d7b76369d551384e86d51b0b9b05a92d%2FPapertrail.png?alt=media\&token=3720886f-9602-469a-a638-4d5f29311c44)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook in Papertrail

Now log in to your Papertail account and query a search. Click on "**Save Search**" in the dialog box and in the dialog box after entering the details enter the details in the "Save Search" dialog box and click "**Save & Setup an Alert**"

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-7c29d77173553fed1d9c9fe269f5ec3154df4b91%2Fpapertrail_2.png?alt=media\&token=f646a44a-211f-4cb4-8bf3-1c0d9d178985)

In the subsequent page select "Webhook" from "Webhooks" section.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-feb8523a8e3bc5cf7860c0f77c106e89343c22f8%2Fpapertrail_3.png?alt=media\&token=40a5bfe2-daf2-4fb0-8d6f-6ef720496631)

In the next page select the criteria for which you want to be alerted and in the URL enter the URL you got earlier.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-a5abeaf1471357ced5cb54c4b33b133cdfa162ce%2Fpapertrail_4.png?alt=media\&token=62429286-ba5f-4b56-b025-c034688159eb)

* **DO NOT** tick on **Send only counts**.

Click on "**Create Alert**" to finally create the alert.

That's it!! your Papertrail Integration is now good to go.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
