Logstash
$ logstash Official Med RiskLogstash (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.
brew install logstash Logstash validates local .conf pipelines and runs JVM ETL plugins on disk; no MCP server provides equivalent pipeline config linting.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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 jsonflags- Multi-second JVM cold start and noisy startup output
-t safely validates configs without executing outputs and logstash-keystore encrypts credentials, though misconfigured outputs write immediately on run.
-tprevents accidental pipeline execution during checks
Heavyweight ~300MB+ distribution requiring bundled/host JVM and high RAM (~1GB+ heap), plus slow plugin installation.
- Heavy JVM footprint and large archive install
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
Official Elastic (elastic/logstash) tool, dual-licensed Apache-2.0 / Elastic-2.0.
- Official
elastic/logstashrepository
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
Reads logstash.yml, pipelines.yml, keystore secrets (bin/logstash-keystore), and ${ENV_VAR} references inside .conf files.
Core Apache-2.0 with Elastic License 2.0 distribution components; free for self-hosted ETL.
# 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
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
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.confsyntax errors before deployment. - +
--log.format jsonproduces 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.