What does Logstash do compared with Beats?
IntermediateConceptLogging: ELK/EFK, Loki & Log Shippers
Answer
- Filebeat/Beats: lightweight Go agents that tail files and ship them, with simple processors.
- Logstash: a JVM pipeline (
inputthenfilterthenoutput) for heavy transformation: grok parsing, enrichment, routing to multiple outputs, persistent queues.
filter {
grok { match => { "message" => "%{COMBINEDAPACHELOG}" } }
date { match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"] }
}
Many teams now replace Logstash with Elasticsearch ingest pipelines or Fluent Bit/Vector processing to save resources.
More on Logging: ELK/EFK, Loki & Log Shippers
What is the ELK stack, and what is EFK?BeginnerHow does Elasticsearch store and search logs?IntermediateWhat is ILM (Index Lifecycle Management) and why do log clusters need it?IntermediateWhat is an Elasticsearch data stream?AdvancedWhat is an index template and mapping, and what is a mapping explosion?AdvancedWhat is Grafana Loki and how is it different from Elasticsearch?Beginner