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
| Name | Required | Description | Default |
|---|---|---|---|
| time_range | No | Time range to look back | 1h |
| filters | No | Filters to apply to the log search (e.g., {'service': 'web', 'env': 'prod', 'status': 'error', 'host': 'web-01'}) | |
| query | No | Free-text search query (e.g., 'error OR exception', 'timeout', 'user_id:12345') | |
| limit | No | Maximum number of log entries (default: 50) | |
| cursor | No | Pagination cursor from previous response (for getting next page) | |
| format | No | Output format | table |