Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

New Relic Logs API

Log data ingestion endpoints

New Relic Logs API is one of 41 APIs that New Relic publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 111 JSON Schema definitions.

Tagged areas include Logs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, an API reference, a JSON-LD context, rate-limit docs, and 111 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 6 schemas. It is described by OpenAPI 3.1.0, at version 1.

Requests are made against 2 base URLs: https://insights-collector.newrelic.com, https://insights-collector.eu01.nr-data.net.

1 operations 1 paths 6 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1
Base URL
https://api.newrelic.com/v2/
Authentication
API Key
Terms of Service
Resource Areas
1

Authentication & Security 1

New Relic Logs API declares 1 security scheme for authenticating requests. An API key is passed in the header as Api-Key (apiKey). By default, every request must be authenticated.

  • apiKey — New Relic License Key or Ingest API Key

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Logs 1

Log data ingestion endpoints

POST
/log/v1
New Relic Send Log Data
sendLogs 2 params body → 202400403413429

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are LogRecord (5 properties), ErrorResponse (2 properties), LogDataObject (2 properties), CommonBlock (2 properties). Each schema is shown below with its type and property counts.

LogPayload
array
Array of log data batch objects
LogRecord
object
A single log record
5 properties
CommonBlock
object
Shared attributes applied to all log records in this batch
2 properties
LogDataObject
object
A batch of log records with optional shared attributes
2 properties 1 required
ErrorResponse
object
Error response
2 properties
AcceptedResponse
object
Response when the payload was accepted
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

new-relic-logs-api-openapi.yml Raw ↑

Other APIs New Relic publishes across the network.

New Relic NerdGraph API
New Relic Alerts API
New Relic Synthetics API
New Relic Infrastructure Alerts API
New Relic Browser API
New Relic Partnership API
New Relic Telemetry SDKs
New Relic OpenTelemetry OTLP Endpoint
New Relic Control
New Relic NRQL Lookups API
New Relic Security Data API
New Relic Mobile SDK