Skip to main content
Glama

k8s_get_pod_logs

Retrieve container logs from Kubernetes pods to monitor application behavior, troubleshoot issues, and analyze performance. Specify pod name, namespace, container, and time range for targeted log extraction.

Instructions

Get logs from a pod container

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPod name
namespaceNoNamespace
containerNoContainer name (if pod has multiple containers)
tailNoNumber of lines to show from end of logs
previousNoGet logs from previous instance of container
sinceNoOnly return logs newer than a relative duration (e.g., 5m, 1h)

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/mjrestivo16/mcp-kubernetes'

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