MCPVault

get_service_logs

MCP tool from Datadog MCP by shelfio

Retrieves service logs with comprehensive filtering capabilities.

How to use it

get_service_logs is exposed by the Datadog MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_service_logs tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Datadog MCP

$uvx --from git+https://github.com/shelfio/datadog-mcp.git datadog-mcp
FULL DATADOG MCP LISTING

Other tools in Datadog MCP (36)

aggregation

(optional): "avg", "sum", "min", "max", "count"

aggregation_by

(optional): List of fields to group results by

environment

(optional): "prod", "staging", "backoffice"

field_name

(required): The field name to get values for

filter

(optional): Filter to search for metrics by tags (e.g., 'aws:', 'env:', 'service:web')

filters

(optional): Dictionary of filters to apply (e.g., {'service': 'web', 'env': 'prod'})

format

(optional): Output format - "table", "json", or "summary"

get_metric_field_values

Retrieves all values for a specific field of a metric.

get_metric_fields

Retrieves all available fields (tags) for a specific metric.

get_metrics

Queries any Datadog metric with flexible filtering and aggregation.

get_pipeline_fingerprints

Extracts pipeline fingerprints for use in Terraform service definitions.

get_service_definition

Retrieves the definition of a specific service with detailed metadata.

get_teams

Lists teams and their members.

include_members

(optional): Include member details (default: false)

limit

(optional): Maximum number of metrics to return (default: 100, max: 10000)

list_ci_pipelines

Lists all CI pipelines registered in Datadog with filtering options.

list_metrics

Lists all available metrics from Datadog for metric discovery.

list_monitors

Lists all Datadog monitors with comprehensive filtering options.

list_service_definitions

Lists all service definitions from Datadog with pagination and filtering.

list_slos

Lists Service Level Objectives (SLOs) from Datadog with filtering capabilities.

log_level

(optional): "INFO", "ERROR", "WARN", "DEBUG"

metric_name

(required): The metric name to query (e.g., 'aws.apigateway.count', 'system.cpu.user')

monitor_tags

(optional): Filter monitors by monitor tags (e.g., 'team:backend')

name

(optional): Filter monitors by name (substring match)

offset

(optional): Number of SLOs to skip (default: 0)

page

(optional): Page number (0-indexed, default: 0)

page_number

(optional): Page number for pagination (0-indexed, default: 0)

page_size

(optional): Number of service definitions per page (default: 10, max: 100)

pipeline_name

(optional): Filter by pipeline name

query

(optional): Filter SLOs by name or description (substring match)

repository

(optional): Filter by repository name

schema_version

(optional): Filter by schema version (e.g., 'v2', 'v2.1', 'v2.2')

service_name

(required): Name of the service to retrieve

tags

(optional): Filter monitors by tags (e.g., 'env:prod,service:web')

team_name

(optional): Filter by team name

time_range

(optional): "1h", "4h", "8h", "1d", "7d", "14d", "30d"