elk-stack

elk-stack is a skill for Claude Code, Codex from BagelHole/DevOps-Security-Agent-Skills. It costs 56 tokens per session (2,583 once invoked), scanned A, original, MIT.

A system for collecting, processing, searching, and visualizing logs using Elasticsearch, Logstash, and Kibana. Logs are records of events produced by applications and infrastructure.

In plain words
What is it for?
Use it to build log pipelines, transform incoming records, create dashboards and alerts, and provide full-text search across logs.
Why use it?
It brings logs from different sources into one searchable place, making it easier to investigate failures and analyze system activity.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./logstash/pipeline:/usr/share/logstash/pipeline.

Good fit Use it to build log pipelines, transform incoming records, create dashboards and alerts, and provide full-text search across logs.

Compare 6 skills from other repositories ↓
About the project

DevOps & Security Agent Skills is a knowledge base of agent-readable skills covering software delivery, cloud infrastructure, security, compliance, AI operations, and incident response. It is for SRE, platform, infrastructure, and security teams using agents to work with systems such as Kubernetes, Terraform, and major cloud platforms. The catalogue provides a selection of the project's skills for agents including Claude Code, Cursor, and Codex.

BagelHole/DevOps-Security-Agent-Skills · 1,229 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/BagelHole/DevOps-Security-Agent-Skills
agentmods
npx agentmods add skills/bagelhole/devops-security-agent-skills/elk-stack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elk-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/elk-stack/github.svg)](https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/elk-stack)
Your own site
<a href="https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/elk-stack"><img src="https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/elk-stack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elk-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/elk-stack"><img src="https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/elk-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 73
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 257
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.02583
Opus 5.5 $0.00022 $0.01033
Sonnet 5.5 $0.00011 $0.00517
Haiku 4.5 $0.00006 $0.00258

Measured 3mo ago against content hash 645caec2cd4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

elk-stack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

devops/observability/elk-stack/SKILL.md · 463 lines

How it starts

The opening of the file, as written. The whole thing — 463 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ELK Stack

Centralize and analyze logs with Elasticsearch, Logstash, and Kibana.

When to Use This Skill

Use this skill when:

  • Centralizing logs from multiple sources
  • Building log search and analytics platforms
  • Creating log-based dashboards and alerts
  • Implementing full-text search for logs
  • Processing and transforming log data

Prerequisites

  • Docker or server infrastructure
  • Sufficient disk space for log storage
  • Network access from log sources

Docker Deployment

# docker-compose.yml
version: '3.8'

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0
    environment:
      - discovery.type=single-node
      - xpack.security.enabled=false
      - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
    ports:
      - "9200:9200"
    volumes:
      - elasticsearch-data:/usr/share/elasticsearch/data

  logstash:
    image: docker.elastic.co/logstash/logstash:8.11.0
    volumes:
      - ./logstash/pipeline:/usr/share/logstash/pipeline
      - ./logstash/config:/usr/share/logstash/config
    ports:
      - "5044:5044"
      - "5000:5000"
    depends_on:
      - elasticsearch

  kibana:
    image: docker.elastic.co/kibana/kibana:8.11.0
    ports:
      - "5601:5601"
    environment:
      - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
    depends_on:
      - elasticsearch

  filebeat:
    image: docker.elastic.co/beats/filebeat:8.11.0
    user: root
    volumes:
      - ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
      - /var/lib/docker/containers:/var/lib/docker/containers:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
    depends_on:
      - logstash

volumes:
  elasticsearch-data:

Elasticsearch Configuration

Index Templates

PUT _index_template/logs-template
{
  "index_patterns": ["logs-*"],
  "template": {
    "settings": {
      "number_of_shards": 1,
      "number_of_replicas": 1,
      "index.lifecycle.name": "logs-policy"
    },
    "mappings": {
      "properties": {
        "@timestamp": { "type": "date" },
        "message": { "type": "text" },
        "level": { "type": "keyword" },
        "service": { "type": "keyword" },
        "host": { "type": "keyword" },
        "trace_id": { "type": "keyword" }
      }
    }
  }
}

Read the full file on GitHub · 463 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 463 lines · 56 tokens per session scan A 645caec2cd4b

Subscribe to this mod's changes

elk-stack is a skill published in the GitHub repository BagelHole/DevOps-Security-Agent-Skills (1,229 stars, last pushed 6mo ago), licensed MIT. It adds 56 tokens to every session and 2,583 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

elk-stack compared with skills from other repositories

elk-stack next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
elk-stackBagelHole/DevOps-Security-Agent-SkillsSkill1.2k6mo agoMITA56Claude Code, Codex
implementing-aws-config-rules-for-compliancexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A53Claude Code, Codex
implementing-aws-security-hub-compliancexalgorix/xalgorixSkill1.5kyesterdayApache-2.0A53Claude Code, Codex
ec2itsmostafa/aws-agent-skillsSkill1.2k6d agoMITA320Claude Code
ecsitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA35Claude Code
cloudwatchitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA43Claude Code
cloudformationitsmostafa/aws-agent-skillsSkill1.2k6d agoMITA34Claude Code