Datadog · Schema

LogAttributes

The attributes of a log event returned from the search API

AnalyticsDashboardsMonitoringPlatformT1Visualizations

Properties

Name Type Description
timestamp string ISO 8601 timestamp when the log was generated
status string The log level or severity status of the event
message string The raw log message content
host string The hostname of the machine that generated the log
service string The name of the application or service that generated the log
source string The technology source that generated the log (e.g., nginx, java)
tags array List of tags associated with the log event in key:value format
attributes object Custom key-value attributes extracted from the log message
View JSON Schema on GitHub

JSON Schema

datadog-logs-log-attributes-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/json-schema/datadog-logs-log-attributes-schema.json",
  "title": "LogAttributes",
  "description": "The attributes of a log event returned from the search API",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the log was generated",
      "example": "2026-04-17T12:00:00Z"
    },
    "status": {
      "type": "string",
      "description": "The log level or severity status of the event",
      "example": "OK"
    },
    "message": {
      "type": "string",
      "description": "The raw log message content",
      "example": "CPU usage is high on {{host.name}}"
    },
    "host": {
      "type": "string",
      "description": "The hostname of the machine that generated the log",
      "example": "example_value"
    },
    "service": {
      "type": "string",
      "description": "The name of the application or service that generated the log",
      "example": "example_value"
    },
    "source": {
      "type": "string",
      "description": "The technology source that generated the log (e.g., nginx, java)",
      "example": "example_value"
    },
    "tags": {
      "type": "array",
      "description": "List of tags associated with the log event in key:value format",
      "items": {
        "type": "string"
      }
    },
    "attributes": {
      "type": "object",
      "description": "Custom key-value attributes extracted from the log message",
      "additionalProperties": true
    }
  }
}