New Relic · JSON Structure

New Relic Log Log Record Structure

A single log record

Type: object Properties: 5
AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

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

Properties

timestamp message level logtype attributes

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "A single log record",
  "name": "LogRecord",
  "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"
    }
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}