New Relic · Schema

CommonBlock

Shared attributes applied to all log records in this batch

AnalysisAnalyticsAPMDevOpsInfrastructureMonitoringObservabilityPerformancePlatform

Properties

Name Type Description
timestamp integer Default Unix timestamp in milliseconds for all logs in the batch
attributes object Key-value attributes applied to all logs in this batch
View JSON Schema on GitHub

JSON Schema

log-api-common-block-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/new-relic/refs/heads/main/json-schema/log-api-common-block-schema.json",
  "title": "CommonBlock",
  "description": "Shared attributes applied to all log records in this batch",
  "type": "object",
  "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",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      },
      "example": {
        "customAttribute": "example_value"
      }
    }
  }
}