{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Logs API",
    "version": "v2"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Logs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Send Logs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.datadoghq.com/api/v2/logs",
            "headers": [
              {
                "name": "Content-Encoding",
                "value": "gzip"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends log entries to the Datadog platform for indexing, storage, and analysis. Accepts log payloads in JSON format. Each log entry can include a message, hostname, service name, source, tags, and additional custom attributes. Supports batching multiple log entries in a single request. The maximum payload size is 5 MB for the HTTP intake endpoint. Logs must contain a message field."
        },
        {
          "info": {
            "name": "Datadog Search Logs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.datadoghq.com/api/v2/logs/events/search",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Searches log events that match a Datadog log search query within a specified time range. Supports full-text search and structured queries using Datadog's log query language. Results are paginated and can be sorted by timestamp. Queries can filter by log attributes, facets, tags, service, source, hostname, and status. Returns up to 1000 logs per page."
        }
      ]
    },
    {
      "info": {
        "name": "Log Aggregation",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Aggregate Logs",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.datadoghq.com/api/v2/logs/analytics/aggregate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Computes aggregations over log events matching a search query within a specified time range. Supports count, sum, avg, min, max, and percentile aggregations grouped by one or more facets. Results can be used for building analytics charts, dashboards, and reports. Useful for answering questions like \"how many errors per service per hour?\" or \"what is the p99 latency by endpoint?\"."
        }
      ]
    },
    {
      "info": {
        "name": "Log Indexes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog List Log Indexes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.datadoghq.com/api/v1/logs/config/indexes"
          },
          "docs": "Returns the list of configured log indexes for your Datadog organization. Each index defines a filter for which logs to include, a daily retention policy, and log volume limits. Indexes are evaluated in order, and each log can match at most one index. Index configurations affect log retention, querying capabilities, and cost."
        },
        {
          "info": {
            "name": "Datadog Get a Log Index",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.datadoghq.com/api/v1/logs/config/indexes/:name",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "The name of the log index to retrieve"
              }
            ]
          },
          "docs": "Returns the configuration details for a specific log index identified by its name. Includes the filter query, exclusion filters, daily retention settings, and current usage statistics."
        }
      ]
    }
  ],
  "bundled": true
}