Datadog · Schema

HTTPLogItem

A single log entry to submit to Datadog

AnalyticsDashboardsMonitoringPlatformT1Visualizations

Properties

Name Type Description
message string The message content of the log entry. This field is required and indexed for search.
hostname string The name of the host that generated the log entry
service string The name of the application or service that generated the log
ddsource string The source technology of the log (e.g., nginx, redis, java) used for automatic processing
ddtags string Comma-separated list of tags to apply to the log entry in key:value format
status string The severity or log level of the event (e.g., info, warning, error, critical)
View JSON Schema on GitHub

JSON Schema

datadog-logs-http-log-item-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-http-log-item-schema.json",
  "title": "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"
  ]
}