# ELK Log Investigator

> Teaches coding agents to debug production incidents in Elastic Cloud logs with a token-efficient overview, patterns, single-log workflow.

ELK Log Investigator is a free AI agent skill on Agensi by Uday Hegde, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Uday Hegde](https://www.agensi.io/creators/uday-hegde)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/elk-log-investigator
- Tags: mcp, observability, devops, sre, debugging

## About this skill

This skill teaches an agent how to use the `elk-mcp-server` MCP tools (https://github.com/UdayHE/elk_mcp-server) to debug production issues from Elastic Cloud logs. All tools are read-only.

The `elk` MCP server must be configured in the host (see `references/setup.md`). If the `elk_*` tools are not available, tell the user to set it up first and stop.

Follow these steps in order. Each step is cheap and tells you whether the next one is needed.

1. **`elk_overview` (always first).** Pass the region, a time window in hours, and the namespace if known. It returns counts only: a time histogram and top levels, namespaces and pods. Use it to find *when* the problem started and *which* pods or namespaces are affected.
2. **`elk_error_patterns`.** Deduplicates repeated errors (UUIDs, hex, IPs and numbers are normalized) into ranked patterns with a sample document id and index. Use it to find *what* is failing, ranked by frequency.
3. **`elk_get_log`.** Fetch one full, untruncated document (message and stack trace) using the id and index from a pattern sample.
4. **`elk_context`.** Pull logs just before and after a specific moment for a pod or namespace to see what led up to the failure.
5. **`elk_search`.** Use for targeted, field-filtered queries. Output is compact TSV and cursor-paginated. Prefer narrow filters over large windows.
6. **`elk_dump`.** Only for bulk analysis. It writes JSONL to a local file so you can `grep` it without loading results into context.

## Requires

- Elk MCP

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ELK Log Investigator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does ELK Log Investigator do?

Teaches coding agents to debug production incidents in Elastic Cloud logs with a token-efficient overview, patterns, single-log workflow.

### Which AI agents support ELK Log Investigator?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use ELK Log Investigator?

Connect your AI agent to Agensi through MCP, then ask it to use ELK Log Investigator on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
