Skip to main content
Glama

get_logs

Search and retrieve log data from Datadog with flexible time ranges, filters, and queries to analyze application performance and troubleshoot issues.

Instructions

Search and retrieve logs from Datadog with flexible filtering parameters. Similar to get_metrics but for log data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
time_rangeNoTime range to look back1h
filtersNoFilters to apply to the log search (e.g., {'service': 'web', 'env': 'prod', 'status': 'error', 'host': 'web-01'})
queryNoFree-text search query (e.g., 'error OR exception', 'timeout', 'user_id:12345')
limitNoMaximum number of log entries (default: 50)
cursorNoPagination cursor from previous response (for getting next page)
formatNoOutput formattable

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shelfio/datadog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server