Developers SSH into servers and `grep` log files to debug. You are asked to centralise logging. Where do you start?

BeginnerScenarioLogging Pipelines
Answer

Situation read → No central logs means slow debugging, lost evidence when instances die, and too many people with SSH access.

What I'd do →

  1. Pick a backend that matches budget and query needs: Loki (cheap, label-indexed), Elasticsearch/OpenSearch (full-text), or a managed service (CloudWatch Logs, Grafana Cloud).
  2. Deploy one shipper per node: Grafana Alloy, Fluent Bit or Vector, tailing /var/log/*.log and the journal.
  3. Attach consistent labels: env, service, host, cluster.
  4. Set a retention policy (e.g. 14 days hot, 90 days archived to S3).
  5. Give developers Grafana Explore or Kibana and then remove routine SSH access.

Why → Logs survive instance termination, everyone searches in one place, and you can build alerts on top.

Interview tip → Say what you would not do first: shipping everything at DEBUG level on day one.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines