---
title: New Relic OTLP
summary: Allows OTLP trace data to be sent to New Relic. Requires custom VCL to instrument the service to generate OTLP trace data. See <a href="https://www.fastly.com/documentation/guides/integrations/logging-endpoints/log-streaming-newrelic-otlp/#instrumenting-your-vcl-service">https://www.fastly.com/documentation/guides/integrations/logging-endpoints/log-streaming-newrelic-otlp/#instrumenting-your-vcl-service</a> for details.
url: https://www.fastly.com/documentation/reference/api/logging/newrelicotlp
---

Allows OTLP trace data to be sent to New Relic. Requires custom VCL to instrument the service to generate OTLP trace data. See <a href="https://www.fastly.com/documentation/guides/integrations/logging-endpoints/log-streaming-newrelic-otlp/#instrumenting-your-vcl-service">https://www.fastly.com/documentation/guides/integrations/logging-endpoints/log-streaming-newrelic-otlp/#instrumenting-your-vcl-service</a> for details.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `format` | string | A Fastly <a href="https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/">log format string</a>. |
| `region` | string | The region to which to stream logs. |
| `token` | string | The Insert API key from the Account page of your New Relic account. Required. |
| `url` | string | (Optional) URL of the New Relic Trace Observer, if you are using New Relic Infinite Tracing. |
| `format_version` | integer | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in <code>vcl_log</code> if <code>format_version</code> is set to <code>2</code> and in <code>vcl_deliver</code> if <code>format_version</code> is set to <code>1</code>. |
| `log_processing_region` | string | The geographic region where the logs will be processed before streaming. Valid values are <code>us</code>, <code>eu</code>, and <code>none</code> for global. |
| `name` | string | The name for the real-time logging configuration. |
| `placement` | string | Where in the generated VCL the logging call should be placed. If not set, endpoints with <code>format_version</code> of 2 are placed in <code>vcl_log</code> and those with <code>format_version</code> of 1 are placed in <code>vcl_deliver</code>. |
| `response_condition` | string | The name of an existing condition in the configured endpoint, or leave blank to always execute. |
| `created_at` | string | Date and time in ISO 8601 format. (Read-only) |
| `deleted_at` | string | Date and time in ISO 8601 format. (Read-only) |
| `service_id` | string | Alphanumeric string identifying the service. (Read-only) |
| `updated_at` | string | Date and time in ISO 8601 format. (Read-only) |
| `version` | string | String identifying a service version. (Read-only) |

## API endpoints

### List New Relic OTLP endpoints

**GET** `/service/{service_id}/version/{version_id}/logging/newrelicotlp`

List all of the New Relic OTLP logging objects for a particular service and version.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |
| `version_id` | integer | path | Yes | Integer identifying a service version. |

### Create a New Relic OTLP endpoint

**POST** `/service/{service_id}/version/{version_id}/logging/newrelicotlp`

Create a New Relic OTLP logging object for a particular service and version.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |
| `version_id` | integer | path | Yes | Integer identifying a service version. |

### Get a New Relic OTLP endpoint

**GET** `/service/{service_id}/version/{version_id}/logging/newrelicotlp/{logging_newrelicotlp_name}`

Get the details of a New Relic OTLP logging object for a particular service and version.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `logging_newrelicotlp_name` | string | path | Yes | The name for the real-time logging configuration. |
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |
| `version_id` | integer | path | Yes | Integer identifying a service version. |

### Update a New Relic log endpoint

**PUT** `/service/{service_id}/version/{version_id}/logging/newrelicotlp/{logging_newrelicotlp_name}`

Update a New Relic OTLP logging object for a particular service and version.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `logging_newrelicotlp_name` | string | path | Yes | The name for the real-time logging configuration. |
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |
| `version_id` | integer | path | Yes | Integer identifying a service version. |

### Delete a New Relic OTLP endpoint

**DELETE** `/service/{service_id}/version/{version_id}/logging/newrelicotlp/{logging_newrelicotlp_name}`

Delete the New Relic OTLP logging object for a particular service and version.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `logging_newrelicotlp_name` | string | path | Yes | The name for the real-time logging configuration. |
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |
| `version_id` | integer | path | Yes | Integer identifying a service version. |

