New Relic · Schema

LogPayload

Array of log data batch objects

AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform
View JSON Schema on GitHub

JSON Schema

new-relic-log-log-payload-schema.json Raw ↑
{
  "type": "array",
  "description": "Array of log data batch objects",
  "items": {
    "type": "object",
    "description": "A batch of log records with optional shared attributes",
    "properties": {
      "common": {
        "type": "object",
        "description": "Shared attributes applied to all log records in this batch",
        "properties": {
          "timestamp": {
            "type": "integer",
            "description": "Default Unix timestamp in milliseconds for all logs in the batch",
            "example": 1718153645993
          },
          "attributes": {
            "type": "object",
            "description": "Key-value attributes applied to all logs in this batch",
            "example": {
              "customAttribute": "example_value"
            }
          }
        }
      },
      "logs": {
        "type": "array",
        "description": "Array of individual log records",
        "example": [
          {
            "timestamp": 1718153645993,
            "message": "Operation completed successfully",
            "level": "FATAL",
            "logtype": "standard",
            "attributes": {
              "customAttribute": "example_value"
            }
          }
        ],
        "items": {
          "type": "object",
          "description": "A single log record",
          "properties": {
            "timestamp": {
              "type": "integer",
              "description": "Unix epoch timestamp in milliseconds when the log event occurred",
              "example": 1718153645993
            },
            "message": {
              "type": "string",
              "description": "The log message text",
              "example": "Operation completed successfully"
            },
            "level": {
              "type": "string",
              "description": "Log severity level",
              "example": "FATAL",
              "enum": [
                "FATAL",
                "ERROR",
                "WARN",
                "WARNING",
                "INFO",
                "DEBUG",
                "TRACE"
              ]
            },
            "logtype": {
              "type": "string",
              "description": "Log format type for automatic parsing (e.g., nginx, apache, syslog)",
              "example": "standard"
            },
            "attributes": {
              "type": "object",
              "description": "Additional key-value attributes for this log record",
              "example": {
                "customAttribute": "example_value"
              }
            }
          }
        }
      }
    },
    "required": [
      "logs"
    ]
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LogPayload"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/new-relic-log-log-payload"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.