Skip to main content

Query Logs

Queries logs in Datadog.

This node is also exposed as an AI Agent tool.

This node has 1 input port and 1 output port.

Common Properties

Every node shares these.

  • Name — the node's display name on the canvas.
  • Color — the node's colour on the canvas.
  • Delay Before (sec) — wait this long before the node runs.
  • Delay After (sec) — wait this long after the node runs.
  • Continue On Error — carry on instead of failing the flow. Defaults to false.
info

When Continue On Error is true the error is not raised at all, so a Catch node will not see it either.

Inputs

PropertyFieldDescription
Client IDinClientIDClient ID from Connect node (optional if credentials provided)
FrominFromStart time in ISO-8601 or relative format (e.g. now-1h)
QueryinQueryLog search query using Datadog query syntax
ToinToEnd time in ISO-8601 or relative format (e.g. now)

Outputs

PropertyFieldDescription
LogsoutLogsArray of log entries
Next Log IDoutNextLogIDPagination cursor for next page

Options

PropertyFieldDescription
CredentialsoptCredentialsDatadog API keys
IndexesoptIndexesComma-separated log indexes to search
LimitoptLimitMaximum logs to return (max 1000)
SiteoptSiteDatadog site (defaults to datadoghq.com)
SortoptSortSort order for results One of: -timestamp, timestamp.

Requirements

  • A Client ID from this package's Connect node, unless you set credentials directly on this node.
  • Datadog API Keys — API Key and Application Key for Datadog authentication
    • value — API Key (password, required). Your Datadog API key
    • application_key — Application Key (password, optional). Required for query and management operations (monitors, logs, downtimes)

Store these in a Vault and reference the vault item from the node, rather than typing the secret into the property.

Send Logs

Elsewhere in the package: Connect · Disconnect · Submit Metrics · Query Timeseries · Create Event · Create Monitor · Get Monitor · List Monitors · Mute Monitor · Create Downtime and 3 more

See also