# Streaming Logs to New Relic

[New Relic](https://newrelic.com/) is an application monitoring platform and logging service.

## Setting up New Relic log streaming[​](#setting-up-new-relic-log-streaming "Direct link to Setting up New Relic log streaming")

To stream logs to New Relic, first [generate an API key](https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/#ingest-license-key). Make sure you create an **INGEST - LICENSE** key.

Next, create a new external log stream in Prismatic.

* For US-hosted data, use the endpoint: `https://log-api.newrelic.com/log/v1`
* For EU-hosted data, use: `https://log-api.eu.newrelic.com/log/v1`

Add a header named `X-License-Key` and provide the license key you generated. **Note**: When copying your key, select "Copy key" (not "key ID").

![Configure New Relic log streaming in Prismatic app](/docs/assets/images/new-relic-filled-in-31f45d563c8363337995bfa2a172cfbb.png)

The default message template ([see here](https://prismatic.io/docs/monitor-instances/logging/streaming-logs-externally.md#default-message-template)) works with New Relic, but you can customize it to match your attribute naming conventions.

Once you configure the stream, Prismatic sends logs from all enabled customer instances and all test runs in the integration designer to New Relic:

![List of logs in New Relic app](/docs/assets/images/newrelic-2f7433d33e44bd21294bf83978037dc7.png)
