Interview Prep/Monitoring & Observability/Logging: ELK/EFK, Loki & Log Shippers

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 (input then filter then output) 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.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging: ELK/EFK, Loki & Log Shippers