Datadog · JSON Structure

Datadog Logs Http Log Item Structure

A single log entry to submit to Datadog

Type: object Properties: 6 Required: 1
AnalyticsDashboardsMonitoringPlatformT1Visualizations

HTTPLogItem is a JSON Structure definition published by Datadog, describing 6 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

message hostname service ddsource ddtags status

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/json-structure/datadog-logs-http-log-item-structure.json",
  "name": "HTTPLogItem",
  "description": "A single log entry to submit to Datadog",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "The message content of the log entry. This field is required and indexed for search.",
      "example": "CPU usage is high on {{host.name}}"
    },
    "hostname": {
      "type": "string",
      "description": "The name of the host that generated the log entry",
      "example": "Example Monitor"
    },
    "service": {
      "type": "string",
      "description": "The name of the application or service that generated the log",
      "example": "example_value"
    },
    "ddsource": {
      "type": "string",
      "description": "The source technology of the log (e.g., nginx, redis, java) used for automatic processing",
      "example": "example_value"
    },
    "ddtags": {
      "type": "string",
      "description": "Comma-separated list of tags to apply to the log entry in key:value format",
      "example": "env:production"
    },
    "status": {
      "type": "string",
      "description": "The severity or log level of the event (e.g., info, warning, error, critical)",
      "enum": [
        "emerg",
        "alert",
        "critical",
        "error",
        "warning",
        "notice",
        "info",
        "debug"
      ],
      "example": "emerg"
    }
  },
  "required": [
    "message"
  ]
}