Datadog · Schema

LogsListRequest

Request body for searching log events

AnalyticsDashboardsMonitoringPlatformT1Visualizations

Properties

Name Type Description
filter object
sort string The sort order for log results, either ascending or descending by timestamp
page object Pagination configuration for log search results
View JSON Schema on GitHub

JSON Schema

datadog-logs-logs-list-request-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-logs-list-request-schema.json",
  "title": "LogsListRequest",
  "description": "Request body for searching log events",
  "type": "object",
  "properties": {
    "filter": {
      "$ref": "#/components/schemas/LogsQueryFilter"
    },
    "sort": {
      "type": "string",
      "description": "The sort order for log results, either ascending or descending by timestamp",
      "enum": [
        "timestamp",
        "-timestamp"
      ],
      "example": "timestamp"
    },
    "page": {
      "type": "object",
      "description": "Pagination configuration for log search results",
      "properties": {
        "cursor": {
          "type": "string",
          "description": "A cursor token from a previous response to retrieve the next page of results"
        },
        "limit": {
          "type": "integer",
          "description": "The maximum number of logs to return per page (default 10, max 1000)",
          "minimum": 1,
          "maximum": 1000,
          "default": 10
        }
      }
    }
  }
}