k8s:logs

Query and analyze Kubernetes logs from Kagenti platform components.

292|103|Updated Mar 27, 2025
One-click install
npx skills add https://github.com/kagenti/kagenti --skill k8s-logs-kagenti
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s:logs
Source: https://github.com/kagenti/kagenti/tree/main/.claude/skills/k8s%3Alogs
Command: npx skills add https://github.com/kagenti/kagenti --skill k8s-logs-kagenti

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides immediate access to logs from your Kubernetes cluster components, enabling rapid identification and diagnosis of errors, performance issues, and operational anomalies.

Core Features & Use Cases

  • Log Querying: Search and retrieve logs from specific pods, deployments, or namespaces.
  • Error Detection: Quickly find error messages, warnings, and exceptions across your applications.
  • Real-time Monitoring: Follow log streams to observe live application behavior and troubleshoot issues as they occur.
  • Use Case: When a service is unresponsive, use this Skill to check its logs for any error messages or connection failures that might explain the outage.

Quick Start

Show me the last 100 lines of logs for the 'weather-tool' deployment in the 'team1' namespace.

Frequently Asked Questions about k8s:logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check Kubernetes logs for a pod crash?

To check Kubernetes logs for a pod crash, you can query and analyze logs from specific pods, deployments, or namespaces to quickly find error messages, warnings, and exceptions. This facilitates rapid diagnosis of operational anomalies.

What is the best way to monitor Kubernetes logs in real-time?

Real-time monitoring of Kubernetes logs involves following log streams to observe live application behavior. This allows you to troubleshoot issues and investigate errors as they occur directly within your cluster components.

Can I search for error messages across a specific namespace in Kubernetes?

Yes, you can search for error messages across a specific namespace in Kubernetes. The Skill supports component-specific log checks and advanced filtering patterns to retrieve logs from targeted deployments or namespaces.

Do I need kubectl to retrieve logs from a deployment?

You can retrieve logs from a deployment using commands for log retrieval and filtering. The Skill provides commands to query specific pods, deployments, or namespaces to investigate issues and debug application failures.

How do I get the last 100 lines of logs for a deployment?

To get the last 100 lines of logs for a deployment, you can use the log querying feature to search and retrieve specific log outputs. This enables rapid identification of performance issues and operational anomalies.