New Relic · JSON Structure

New Relic Log Log Payload Structure

Array of log data batch objects

Type: array Properties: 0
AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

LogPayload is a JSON Structure definition published by New Relic. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "array",
  "description": "Array of log data batch objects",
  "name": "LogPayload",
  "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"
          },
          "attributes": {
            "type": "object",
            "description": "Key-value attributes applied to all logs in this batch"
          }
        }
      },
      "logs": {
        "type": "array",
        "description": "Array of individual log records",
        "items": {
          "type": "object",
          "description": "A single log record",
          "properties": {
            "timestamp": {
              "type": "integer",
              "description": "Unix epoch timestamp in milliseconds when the log event occurred"
            },
            "message": {
              "type": "string",
              "description": "The log message text"
            },
            "level": {
              "type": "string",
              "description": "Log severity level",
              "enum": [
                "FATAL",
                "ERROR",
                "WARN",
                "WARNING",
                "INFO",
                "DEBUG",
                "TRACE"
              ]
            },
            "logtype": {
              "type": "string",
              "description": "Log format type for automatic parsing (e.g., nginx, apache, syslog)"
            },
            "attributes": {
              "type": "object",
              "description": "Additional key-value attributes for this log record"
            }
          }
        }
      }
    },
    "required": [
      "logs"
    ]
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}