Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Logstash

$ logstash Official Med Risk
Elastic · Database & Data · Apache-2.0 / Elastic-2.0 · macos / linux / windows

Logstash (logstash) ingests, parses (grok/mutate), and ships logs and events into Elasticsearch and downstream lakes. Offers --config.test_and_exit (-t) for syntax checking and --log.format json for structured system logs, though heavy JVM startup makes ad-hoc agent loops slow.

FCRS-1.0 Score
64 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install logstash
CLI vs MCP Decision CLI Only

Logstash validates local .conf pipelines and runs JVM ETL plugins on disk; no MCP server provides equivalent pipeline config linting.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Supports -t / --config.test_and_exit and --log.format json, but slow JVM startup (5–15s) and verbose lifecycle logs hamper fast agent iteration.

  • --config.test_and_exit (-t) and --log.format json flags
  • Multi-second JVM cold start and noisy startup output
Trust & Safety 17 / 25

-t safely validates configs without executing outputs and logstash-keystore encrypts credentials, though misconfigured outputs write immediately on run.

  • -t prevents accidental pipeline execution during checks
Setup & Portability 8 / 15

Heavyweight ~300MB+ distribution requiring bundled/host JVM and high RAM (~1GB+ heap), plus slow plugin installation.

  • Heavy JVM footprint and large archive install
Utility & Efficiency 10 / 15

Mature grok/filter plugin ecosystem for Elastic Stack, though modern alternatives like vector or benthos are orders of magnitude faster.

  • Rich Elastic Stack plugin library, heavier than Rust/Go successors
Maintenance & Lineage 7 / 10

Official Elastic (elastic/logstash) tool, dual-licensed Apache-2.0 / Elastic-2.0.

  • Official elastic/logstash repository
Docs & Verifiability 6 / 10

Extensive Elastic docs, though plugin-specific options vary widely across versions and Ruby/Java layers.

  • Official CLI and plugin docs at elastic.co

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Reads logstash.yml, pipelines.yml, keystore secrets (bin/logstash-keystore), and ${ENV_VAR} references inside .conf files.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Core Apache-2.0 with Elastic License 2.0 distribution components; free for self-hosted ETL.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Logstash Agent Rules
- Always run `logstash --config.test_and_exit -f <file>` before launching a pipeline.
- Account for 5–15s JVM startup latency and avoid launching unbounded file/beats inputs in tool calls.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate pipeline syntax and exit
logstash --config.test_and_exit -f pipeline.conf --log.format json

Compiles pipeline.conf to catch syntax errors and exits without starting the pipeline.

Controlled Writes & Previews

Run a finite stdin-to-stdout filter test
echo '{"msg":"hello"}' | logstash -e 'input { stdin {} } output { stdout { codec => json_lines } }' --log.format json

Executes an ad-hoc stdin pipeline that exits after EOF (takes several seconds due to JVM startup).

Strengths for Agents

  • + --config.test_and_exit (-t) reliably catches .conf syntax errors before deployment.
  • + --log.format json produces structured JSON system logs.
  • + Huge library of legacy input, grok filter, and Elasticsearch output plugins.

Caveats & Pitfalls

  • ! Slow JVM cold start (often 5–15+ seconds) and ~1GB memory footprint make rapid CLI loops sluggish.
  • ! Standard binary bundles Elastic License 2.0 components alongside Apache-2.0 core.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI