SkillsReviewed · BagelHole

ELK Stack Skill

ELK Stack is an assistant skill for developers and DevOps teams centralizing application logs, but its examples require security and configuration fixes before production use. It supplies Elasticsearch, Logstash, Kibana and Filebeat configuration examples using container images pinned to 8.11.0, plus a separate Elasticsearch query reference.

Researched 17 Nov 2026

In short.

ELK Stack is an assistant skill for developers and DevOps teams building centralized logging, but its examples require security and configuration fixes before production use. Its two Markdown files cover deployment, log processing, search, retention, dashboards and alerts. The sample disables Elasticsearch security, while ingestion fields, query mappings and lifecycle configuration need reconciliation. Nothing was executed; deployment success, compatibility, performance and operating costs are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

The complete supplied scope comprises devops/observability/elk-stack/SKILL.md and devops/observability/elk-stack/references/elasticsearch-queries.md at revision 0365f57a079b1332f95cf26e31dd2d5332a8399f, with the repository-root LICENSE as the related notice outside that folder. Other repository folders, related skills, external product documentation, container contents and third-party service terms are excluded. Nothing was executed. Assistant loading, deployment, ingestion, security, queries, lifecycle behavior, dashboards, alerts and performance remain untested.

The overview

identity

The resource is the devops/observability/elk-stack folder in BagelHole/DevOps-Security-Agent-Skills. It contains SKILL.md and references/elasticsearch-queries.md. The skill metadata names it elk-stack, credits devops-skills and declares version 1.0.

Its deliverables are assistant instructions and configuration examples embedded in Markdown. The original repository location is [https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/devops/observability/elk-stack]. The supplied source revision is 0365f57a079b1332f95cf26e31dd2d5332a8399f.

assessment

The skill offers a useful starting reference for understanding how log collection, processing, storage and visualization fit together. Its examples extend beyond deployment into field mappings, retention, filtering and alert conditions.

Adoption requires someone able to review and reconcile the examples. Disabled security and inconsistencies between collection, parsing and querying prevent treating the snippets as a complete production configuration. No execution evidence establishes that the examples work together.

users

The intended users are developers, DevOps engineers and site reliability engineers collecting logs from several services, investigating errors or building operational dashboards. The examples support searches by service, severity, time and trace identifier.

Beginners can use the document to learn the stack's components, but applying it requires familiarity with Docker volumes, configuration files and Elasticsearch requests. Experienced operators get adaptable examples rather than detailed sizing, high availability or production security guidance. Supported assistant hosts are not specified.

capabilities

The main document provides a four-service Docker Compose example, Elasticsearch mappings and index lifecycle policies, and Logstash inputs for Beats and line-delimited JSON over TCP. Processing examples include JSON parsing, timestamps, nginx patterns, trace identifiers, GeoIP enrichment, status descriptions and dropping DEBUG logs.

Search examples cover text matching, field filters, time ranges and aggregations. Kibana guidance describes saved searches and dashboard panels. A Watcher recipe checks error counts and posts a Slack message. These are documented recipes; the folder contains no separate deployment files or dashboard exports.

Using it

requirements

The stated prerequisites are Docker or server infrastructure, sufficient log storage and network access from log sources. The Compose example additionally expects local Logstash configuration directories and a Filebeat configuration file.

Elasticsearch is assigned a 1 GB Java heap, which does not establish the total memory requirement for the four services. Filebeat runs as root and mounts Docker container logs and the Docker socket. Appropriate host access is therefore required. Total CPU, memory, disk capacity, supported operating systems and sustainable ingestion volume are unspecified.

mechanism

Filebeat collects log files and sends events to Logstash on port 5044. Logstash also accepts JSON lines on TCP port 5000. Its filters extract or enrich fields before writing events to daily Elasticsearch indexes using the pattern logs-%{+YYYY.MM.dd}.

Elasticsearch stores and searches the resulting documents. Kibana connects to Elasticsearch and uses logs-* with @timestamp for exploration and visualization. The alert example periodically searches those indexes and sends a message to a configured Slack webhook when its threshold is exceeded.

setup

To assemble the infrastructure examples, the embedded snippets must become docker-compose.yml, Logstash pipeline configuration and filebeat/filebeat.yml. The Compose file also mounts a Logstash configuration directory whose contents are not supplied. Assistant installation, registration and automatic loading of the query reference are unspecified.

The document then describes creating Elasticsearch templates and lifecycle policies, configuring a Kibana logs-* index pattern with @timestamp, and creating searches and dashboard panels. The Slack webhook path is a placeholder that requires replacement. Security, file mounts, event fields and rollover configuration need correction before deployment.

example

For an API incident, the main document supplies a search over logs-* for ERROR events from service api-gateway during the preceding hour. This illustrates narrowing an investigation by severity, service and time, assuming ingestion has populated those fields correctly.

The Watcher example checks every five minutes for more than 100 ERROR documents in the preceding five minutes and constructs a Slack notification. This measures an error count, not the percentage of requests that failed. No search results or successful alert delivery are established.

Assessment & evidence

limitations

The Compose example disables Elasticsearch security and publishes Elasticsearch, Kibana and Logstash ports without host-address restrictions. No authentication or TLS setup is supplied. Filebeat runs as root with Docker socket access. These settings require review before use on a reachable host.

The nginx path /var/log/nginx/*.log is configured in Filebeat, but the Compose service does not mount that host directory. Filebeat declares type inside fields, while Logstash checks top-level [type]; no configuration reconciles those locations. The date filter also runs before nginx parsing extracts its timestamp and does not list the nginx timestamp format.

The single Elasticsearch node has a template requesting one replica, but no second node is defined to host that copy. Lifecycle examples request rollover without showing a rollover alias or data stream bootstrap. The query reference also uses service.keyword although the main template maps service directly as keyword, targets /logs rather than logs-*, and uses lowercase error where the main examples use ERROR.

reasoning

The resource's strength is the breadth of its connected examples: it explains how collected events become searchable fields, dashboards and threshold alerts. This can help an operator plan the configuration work and identify the relevant stack components.

Its main tradeoff is integration effort. Field names, capitalization, index targets and lifecycle assumptions must agree across components, and the supplied examples do not consistently maintain that agreement. The configuration text supports these cautions; successful ingestion, reliable retention, alert delivery and production suitability remain unverified.

alternatives

The skill names loki-logging as an alternative logging stack, prometheus-grafana for metrics monitoring and audit-logging for compliance logging. These descriptions suggest different operational needs rather than equivalent replacements for every ELK capability.

Their implementations, installation requirements and relative quality are not assessed. The supplied resource provides no comparative costs, benchmarks or detailed feature comparison.

evidence

The original skill document is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/devops/observability/elk-stack/SKILL.md]. Its companion query reference is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/devops/observability/elk-stack/references/elasticsearch-queries.md]. Both addresses identify the same immutable repository revision.

The two files establish the documented configuration and examples. They contain no deployment receipts, benchmark results, successful ingestion output or alert-delivery results. Nothing was executed, and the described behavior has not been demonstrated.

Access & freshness

costs

The MIT notice permits use of the supplied skill without a licence fee. Operating costs are unknown: the evidence supplies no hosting prices, storage estimates, ingestion measurements or assistant usage costs.

The documentation's licence does not establish pricing or entitlements for Elasticsearch, Logstash, Kibana, Filebeat, Watcher or Slack. Retention examples also differ: the main policy deletes after 90 days, while the reference deletes after 30 days. Neither configuration establishes a storage budget.

rights

SKILL.md declares MIT licensing, and the repository LICENSE names Toby Miller as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notice remain in copies or substantial portions. It disclaims warranties.

Redistributing the captured skill and reference should retain that notice. The original licence is available at [https://raw.githubusercontent.com/BagelHole/DevOps-Security-Agent-Skills/0365f57a079b1332f95cf26e31dd2d5332a8399f/LICENSE]. Terms for the referenced third-party software and services are not established by this notice.

freshness

The supplied files were captured on 17 November 2026 at revision 0365f57a079b1332f95cf26e31dd2d5332a8399f. The skill declares version 1.0 and pins all four container images to 8.11.0. The files do not provide a release history or last-maintained date.

The capture date does not establish current product compatibility or support. Compatibility of the lifecycle freeze action, Filebeat input types, Logstash options, Watcher configuration and Kibana navigation with the intended deployment release is unknown.

actions

Obtain both original Markdown files and retain the MIT notice. Before adoption, choose a supported target release, check component licensing and Watcher availability, configure authentication and TLS, restrict exposed ports and review Filebeat's host permissions.

Reconcile nginx mounts, field locations and timestamp parsing; align queries with the actual mappings and severity values; and define a complete index lifecycle strategy. Choose retention, capacity and replica settings for the intended environment rather than copying the differing examples unchanged.

In an isolated environment, verify collection, parsing, searches, rollover, retention, dashboards and Slack alert delivery before relying on them. These are recommended next steps; their outcomes and costs are unknown.

Evidence for this report

LICENSEnotice · checked 2026-11-17
devops/observability/elk-stack/SKILL.mdselected · checked 2026-11-17