Elastic Agent vs Logstash

Both ship data to elasticsearch, but they serve different points on the complexity spectrum.

Side-by-Side

Elastic AgentLogstash
Primary useUnified data collection from a hostComplex ETL pipelines
TransformationLight processors (sanitize, enrich)Heavy filtering, joining, routing
ManagementCentrally via Fleet in KibanaManual config files
DeploymentOne agent per hostStandalone pipeline server
ReplacesBeats (largely)Nothing — still the tool for complex ETL
When to useLogs, metrics, security data from a machineMulti-source joins, heavy transforms, fan-out routing

The Rule of Thumb

Start with elastic-agent. Add logstash only when transformation complexity demands it — e.g., joining multiple streams, applying conditional routing across many outputs, or processing data from sources that don’t have an Elastic Agent integration.

They Are Not Mutually Exclusive

A common pattern: Elastic Agent collects data from hosts → ships to Logstash for transformation → Logstash outputs to Elasticsearch. Agent handles collection; Logstash handles the pipeline.

See Also