Datadog · Capability
Datadog API — Logs
Datadog API — Logs. 6 operations. Lead operation: Datadog Get a List of Audit Logs Events. Self-contained Naftiko capability covering one Datadog business surface.
What You Can Do
GET
Listauditlogs
— Datadog Get a List of Audit Logs Events
/v1/api/v2/audit/events
POST
Searchauditlogs
— Datadog Search Audit Logs Events
/v1/api/v2/audit/events/search
GET
Listawslogsservices
— Datadog Get List of Aws Log Ready Services
/v1/api/v2/integration/aws/logs/services
POST
Submitlog
— Datadog Send Logs
/v1/api/v2/logs
GET
Listlogsget
— Datadog Search Logs (get)
/v1/api/v2/logs/events
POST
Listlogs
— Datadog Search Logs (post)
/v1/api/v2/logs/events/search
MCP Tools
datadog-get-list-audit-logs
Datadog Get a List of Audit Logs Events
read-only
idempotent
datadog-search-audit-logs-events
Datadog Search Audit Logs Events
read-only
datadog-get-list-aws-log
Datadog Get List of Aws Log Ready Services
read-only
idempotent
datadog-send-logs
Datadog Send Logs
datadog-search-logs-get
Datadog Search Logs (get)
read-only
idempotent
datadog-search-logs-post
Datadog Search Logs (post)
read-only
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Datadog API — Logs
description: 'Datadog API — Logs. 6 operations. Lead operation: Datadog Get a List of Audit Logs Events. Self-contained
Naftiko capability covering one Datadog business surface.'
tags:
- Datadog
- Logs
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
DATADOG_API_KEY: DATADOG_API_KEY
capability:
consumes:
- type: http
namespace: datadog-logs
baseUri: https://{subdomain}.{site}
description: Datadog API — Logs business capability. Self-contained, no shared references.
resources:
- name: api-v2-audit-events
path: /api/v2/audit/events
operations:
- name: listauditlogs
method: GET
description: Datadog Get a List of Audit Logs Events
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: filter[query]
in: query
type: string
description: Search query following Audit Logs syntax.
- name: filter[from]
in: query
type: string
description: Minimum timestamp for requested events.
- name: filter[to]
in: query
type: string
description: Maximum timestamp for requested events.
- name: sort
in: query
type: string
description: Order of events in results.
- name: page[cursor]
in: query
type: string
description: List following results with a cursor provided in the previous query.
- name: page[limit]
in: query
type: integer
description: Maximum number of events in the response.
- name: api-v2-audit-events-search
path: /api/v2/audit/events/search
operations:
- name: searchauditlogs
method: POST
description: Datadog Search Audit Logs Events
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-v2-integration-aws-logs-services
path: /api/v2/integration/aws/logs/services
operations:
- name: listawslogsservices
method: GET
description: Datadog Get List of Aws Log Ready Services
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
- name: api-v2-logs
path: /api/v2/logs
operations:
- name: submitlog
method: POST
description: Datadog Send Logs
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: Content-Encoding
in: header
type: string
description: HTTP header used to compress the media-type.
- name: ddtags
in: query
type: string
description: Log tags can be passed as query parameters with `text/plain` content type.
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-v2-logs-events
path: /api/v2/logs/events
operations:
- name: listlogsget
method: GET
description: Datadog Search Logs (get)
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: filter[query]
in: query
type: string
description: Search query following logs syntax.
- name: filter[indexes]
in: query
type: array
description: For customers with multiple indexes, the indexes to search.
- name: filter[from]
in: query
type: string
description: Minimum timestamp for requested logs.
- name: filter[to]
in: query
type: string
description: Maximum timestamp for requested logs.
- name: filter[storage_tier]
in: query
type: string
description: Specifies the storage type to be used
- name: sort
in: query
type: string
description: Order of logs in results.
- name: page[cursor]
in: query
type: string
description: List following results with a cursor provided in the previous query.
- name: page[limit]
in: query
type: integer
description: Maximum number of logs in the response.
- name: api-v2-logs-events-search
path: /api/v2/logs/events/search
operations:
- name: listlogs
method: POST
description: Datadog Search Logs (post)
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
authentication:
type: bearer
token: '{{env.DATADOG_API_KEY}}'
exposes:
- type: rest
namespace: datadog-logs-rest
port: 8080
description: REST adapter for Datadog API — Logs. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/api/v2/audit/events
name: api-v2-audit-events
description: REST surface for api-v2-audit-events.
operations:
- method: GET
name: listauditlogs
description: Datadog Get a List of Audit Logs Events
call: datadog-logs.listauditlogs
with:
filter[query]: rest.filter[query]
filter[from]: rest.filter[from]
filter[to]: rest.filter[to]
sort: rest.sort
page[cursor]: rest.page[cursor]
page[limit]: rest.page[limit]
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/audit/events/search
name: api-v2-audit-events-search
description: REST surface for api-v2-audit-events-search.
operations:
- method: POST
name: searchauditlogs
description: Datadog Search Audit Logs Events
call: datadog-logs.searchauditlogs
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/integration/aws/logs/services
name: api-v2-integration-aws-logs-services
description: REST surface for api-v2-integration-aws-logs-services.
operations:
- method: GET
name: listawslogsservices
description: Datadog Get List of Aws Log Ready Services
call: datadog-logs.listawslogsservices
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/logs
name: api-v2-logs
description: REST surface for api-v2-logs.
operations:
- method: POST
name: submitlog
description: Datadog Send Logs
call: datadog-logs.submitlog
with:
Content-Encoding: rest.Content-Encoding
ddtags: rest.ddtags
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/logs/events
name: api-v2-logs-events
description: REST surface for api-v2-logs-events.
operations:
- method: GET
name: listlogsget
description: Datadog Search Logs (get)
call: datadog-logs.listlogsget
with:
filter[query]: rest.filter[query]
filter[indexes]: rest.filter[indexes]
filter[from]: rest.filter[from]
filter[to]: rest.filter[to]
filter[storage_tier]: rest.filter[storage_tier]
sort: rest.sort
page[cursor]: rest.page[cursor]
page[limit]: rest.page[limit]
outputParameters:
- type: object
mapping: $.
- path: /v1/api/v2/logs/events/search
name: api-v2-logs-events-search
description: REST surface for api-v2-logs-events-search.
operations:
- method: POST
name: listlogs
description: Datadog Search Logs (post)
call: datadog-logs.listlogs
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: datadog-logs-mcp
port: 9090
transport: http
description: MCP adapter for Datadog API — Logs. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: datadog-get-list-audit-logs
description: Datadog Get a List of Audit Logs Events
hints:
readOnly: true
destructive: false
idempotent: true
call: datadog-logs.listauditlogs
with:
filter[query]: tools.filter[query]
filter[from]: tools.filter[from]
filter[to]: tools.filter[to]
sort: tools.sort
page[cursor]: tools.page[cursor]
page[limit]: tools.page[limit]
outputParameters:
- type: object
mapping: $.
- name: datadog-search-audit-logs-events
description: Datadog Search Audit Logs Events
hints:
readOnly: true
destructive: false
idempotent: false
call: datadog-logs.searchauditlogs
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: datadog-get-list-aws-log
description: Datadog Get List of Aws Log Ready Services
hints:
readOnly: true
destructive: false
idempotent: true
call: datadog-logs.listawslogsservices
outputParameters:
- type: object
mapping: $.
- name: datadog-send-logs
description: Datadog Send Logs
hints:
readOnly: false
destructive: false
idempotent: false
call: datadog-logs.submitlog
with:
Content-Encoding: tools.Content-Encoding
ddtags: tools.ddtags
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: datadog-search-logs-get
description: Datadog Search Logs (get)
hints:
readOnly: true
destructive: false
idempotent: true
call: datadog-logs.listlogsget
with:
filter[query]: tools.filter[query]
filter[indexes]: tools.filter[indexes]
filter[from]: tools.filter[from]
filter[to]: tools.filter[to]
filter[storage_tier]: tools.filter[storage_tier]
sort: tools.sort
page[cursor]: tools.page[cursor]
page[limit]: tools.page[limit]
outputParameters:
- type: object
mapping: $.
- name: datadog-search-logs-post
description: Datadog Search Logs (post)
hints:
readOnly: true
destructive: false
idempotent: false
call: datadog-logs.listlogs
with:
body: tools.body
outputParameters:
- type: object
mapping: $.