{ "opencollection": "1.0.0", "info": { "name": "Datadog Account Logs API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Logs", "type": "folder" }, "items": [ { "info": { "name": "Datadog Get a List of Audit Logs Events", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/audit/events", "params": [ { "name": "filter[query]", "value": "@type:session @application_id:xxxx", "type": "query", "description": "Search query following Audit Logs syntax." }, { "name": "filter[from]", "value": "2019-01-02T09:42:36.320Z", "type": "query", "description": "Minimum timestamp for requested events." }, { "name": "filter[to]", "value": "2019-01-03T09:42:36.320Z", "type": "query", "description": "Maximum timestamp for requested events." }, { "name": "sort", "value": "example_value", "type": "query", "description": "Order of events in results." }, { "name": "page[cursor]", "value": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "type": "query", "description": "List following results with a cursor provided in the previous query." }, { "name": "page[limit]", "value": "25", "type": "query", "description": "Maximum number of events in the response." } ] }, "docs": "List endpoint returns events that match a Audit Logs search query.\n[Results are paginated][1].\n\nUse this endpoint to see your latest Audit Logs events.\n\n[1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination" }, { "info": { "name": "Datadog Search Audit Logs Events", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/audit/events/search", "body": { "type": "json", "data": "{}" } }, "docs": "List endpoint returns Audit Logs events that match an Audit search query.\n[Results are paginated][1].\n\nUse this endpoint to build complex Audit Logs events filtering and search.\n\n[1]: https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination" }, { "info": { "name": "Datadog Get List of Aws Log Ready Services", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/integration/aws/logs/services" }, "docs": "Get a list of AWS services that can send logs to Datadog." }, { "info": { "name": "Datadog Send Logs", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/logs", "headers": [ { "name": "Content-Encoding", "value": "example_value" } ], "params": [ { "name": "ddtags", "value": "env:prod,user:my-user", "type": "query", "description": "Log tags can be passed as query parameters with `text/plain` content type." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "apikey", "key": "DD-API-KEY", "value": "{{DD-API-KEY}}", "placement": "header" } }, "docs": "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\nD" }, { "info": { "name": "Datadog Search Logs (get)", "type": "http" }, "http": { "method": "GET", "url": "https://{subdomain}.{site}/api/v2/logs/events", "params": [ { "name": "filter[query]", "value": "@datacenter:us @role:db", "type": "query", "description": "Search query following logs syntax." }, { "name": "filter[indexes]", "value": "main,web", "type": "query", "description": "For customers with multiple indexes, the indexes to search.\nDefaults to '*' which means all indexes" }, { "name": "filter[from]", "value": "2019-01-02T09:42:36.320Z", "type": "query", "description": "Minimum timestamp for requested logs." }, { "name": "filter[to]", "value": "2019-01-03T09:42:36.320Z", "type": "query", "description": "Maximum timestamp for requested logs." }, { "name": "filter[storage_tier]", "value": "indexes", "type": "query", "description": "Specifies the storage type to be used" }, { "name": "sort", "value": "example_value", "type": "query", "description": "Order of logs in results." }, { "name": "page[cursor]", "value": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "type": "query", "description": "List following results with a cursor provided in the previous query." }, { "name": "page[limit]", "value": "25", "type": "query", "description": "Maximum number of logs in the response." } ] }, "docs": "List endpoint returns logs that match a log search query.\n[Results are paginated][1].\n\nUse this endpoint to search and filter your logs.\n\n**If you are considering archiving logs for your organization,\nconsider use of the Datadog archive capabilities instead of the log list API.\nSee [Datadog Logs Archive documentation][2].**\n\n[1]: /logs/guide/collect-multiple-logs-with-pagination\n[2]: https://docs.datadoghq.com/logs/archives" }, { "info": { "name": "Datadog Search Logs (post)", "type": "http" }, "http": { "method": "POST", "url": "https://{subdomain}.{site}/api/v2/logs/events/search", "body": { "type": "json", "data": "{}" } }, "docs": "List endpoint returns logs that match a log search query.\n[Results are paginated][1].\n\nUse this endpoint to search and filter your logs.\n\n**If you are considering archiving logs for your organization,\nconsider use of the Datadog archive capabilities instead of the log list API.\nSee [Datadog Logs Archive documentation][2].**\n\n[1]: /logs/guide/collect-multiple-logs-with-pagination\n[2]: https://docs.datadoghq.com/logs/archives" } ] } ], "bundled": true }