Chilkat Online Tools

SQL Server / Datadog API Collection / Send logs

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    -- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    -- The following JSON is sent in the request body.

    -- [
    --   {
    --     "message": "<string>",
    --     "ddsource": "<string>",
    --     "ddtags": "<string>",
    --     "hostname": "<string>",
    --     "service": "<string>"
    --   },
    --   {
    --     "message": "<string>",
    --     "ddsource": "<string>",
    --     "ddtags": "<string>",
    --     "hostname": "<string>",
    --     "service": "<string>"
    --   }
    -- ]

    DECLARE @jarr int
    -- Use "Chilkat_9_5_0.JsonArray" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonArray', @jarr OUT

    EXEC sp_OAMethod @jarr, 'AddObjectAt', @success OUT, -1
    DECLARE @jsonObj_1 int
    EXEC sp_OAGetProperty @jarr, 'Size', @iTmp0 OUT
    EXEC sp_OAMethod @jarr, 'ObjectAt', @jsonObj_1 OUT, @iTmp0 - 1
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'message', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'ddsource', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'ddtags', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'hostname', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'service', '<string>'
    EXEC @hr = sp_OADestroy @jsonObj_1

    EXEC sp_OAMethod @jarr, 'AddObjectAt', @success OUT, -1
    EXEC sp_OAGetProperty @jarr, 'Size', @iTmp0 OUT
    EXEC sp_OAMethod @jarr, 'ObjectAt', @jsonObj_1 OUT, @iTmp0 - 1
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'message', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'ddsource', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'ddtags', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'hostname', '<string>'
    EXEC sp_OAMethod @jsonObj_1, 'UpdateString', @success OUT, 'service', '<string>'
    EXEC @hr = sp_OADestroy @jsonObj_1

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Encoding', 'identity'

    DECLARE @sbRequestBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbRequestBody OUT

    EXEC sp_OAMethod @jarr, 'EmitSb', @success OUT, @sbRequestBody

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PTextSb', @resp OUT, 'POST', 'https://http-intake.logs.app.ddog-gov.com/api/v2/logs?ddtags=<string>', @sbRequestBody, 'utf-8', 'application/json', 0, 0
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @jarr
        EXEC @hr = sp_OADestroy @sbRequestBody
        RETURN
      END

    DECLARE @sbResponseBody int
    -- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    -- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
    EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @jarr
        EXEC @hr = sp_OADestroy @sbRequestBody
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp


    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @jarr
    EXEC @hr = sp_OADestroy @sbRequestBody
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Content-Encoding: identity"
	-H "Content-Type: application/json"
	-H "Accept: application/json"
	-d '[
  {
    "message": "<string>",
    "ddsource": "<string>",
    "ddtags": "<string>",
    "hostname": "<string>",
    "service": "<string>"
  },
  {
    "message": "<string>",
    "ddsource": "<string>",
    "ddtags": "<string>",
    "hostname": "<string>",
    "service": "<string>"
  }
]'
https://http-intake.logs.app.ddog-gov.com/api/v2/logs?ddtags=<string>

Postman Collection Item JSON

{
  "name": "Send logs",
  "request": {
    "method": "POST",
    "header": [
      {
        "description": "HTTP header used to compress the media-type.",
        "key": "Content-Encoding",
        "value": "identity"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
      "options": {
        "raw": {
          "headerFamily": "json",
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "https://http-intake.logs.{{site}}/api/v2/logs?ddtags=<string>",
      "protocol": "https",
      "host": [
        "http-intake",
        "logs",
        "{{site}}"
      ],
      "path": [
        "api",
        "v2",
        "logs"
      ],
      "query": [
        {
          "key": "ddtags",
          "value": "<string>",
          "description": "Log tags can be passed as query parameters with `text/plain` content type."
        }
      ]
    },
    "description": "Send your logs to your Datadog platform over HTTP. Limits per HTTP request are:\n\n- Maximum content size per payload (uncompressed): 5MB\n- Maximum size for a single log: 1MB\n- Maximum array size if sending multiple logs in an array: 1000 entries\n\nAny log exceeding 1MB is accepted and truncated by Datadog:\n- For a single log request, the API truncates the log at 1MB and returns a 2xx.\n- For a multi-logs request, the API processes all logs, truncates only logs larger than 1MB, and returns a 2xx.\n\nDatadog recommends sending your logs compressed.\nAdd the `Content-Encoding: gzip` header to the request when sending compressed logs.\nLog events can be submitted with a timestamp that is up to 18 hours in the past.\n\nThe status codes answered by the HTTP API are:\n- 202: Accepted: the request has been accepted for processing\n- 400: Bad request (likely an issue in the payload formatting)\n- 401: Unauthorized (likely a missing API Key)\n- 403: Permission issue (likely using an invalid API Key)\n- 408: Request Timeout, request should be retried after some time\n- 413: Payload too large (batch is above 5MB uncompressed)\n- 429: Too Many Requests, request should be retried after some time\n- 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time\n- 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time"
  },
  "response": [
    {
      "name": "Request accepted for processing (always 202 empty JSON).",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Accepted",
      "code": 202,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Unauthorized",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Unauthorized",
      "code": 401,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Forbidden",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Request Timeout",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Request Timeout",
      "code": 408,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Payload Too Large",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Request Entity Too Large",
      "code": 413,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Too Many Requests",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Internal Server Error",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Internal Server Error",
      "code": 500,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    },
    {
      "name": "Service Unavailable",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "description": "HTTP header used to compress the media-type.",
            "key": "Content-Encoding",
            "value": "gzip"
          },
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "[\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  },\n  {\n    \"message\": \"<string>\",\n    \"ddsource\": \"<string>\",\n    \"ddtags\": \"<string>\",\n    \"hostname\": \"<string>\",\n    \"service\": \"<string>\"\n  }\n]",
          "options": {
            "raw": {
              "headerFamily": "json",
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://{{subdomain}}.{{site}}/api/v2/logs?ddtags=<string>",
          "protocol": "https",
          "host": [
            "{{subdomain}}",
            "{{site}}"
          ],
          "path": [
            "api",
            "v2",
            "logs"
          ],
          "query": [
            {
              "key": "ddtags",
              "value": "<string>",
              "description": "Log tags can be passed as query parameters with `text/plain` content type."
            }
          ]
        }
      },
      "status": "Service Unavailable",
      "code": 503,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    },\n    {\n      \"detail\": \"<string>\",\n      \"status\": \"<string>\",\n      \"title\": \"<string>\"\n    }\n  ]\n}"
    }
  ]
}