Interview Prep/Linux/Migrations, performance and fleet operations

You need to set up central logging for 200 Linux servers. Design it.

IntermediateScenarioMigrations, performance and fleet operations
Answer

Situation read → Agents on hosts, a pipeline, and a searchable store.

What I'd do →

  1. Agent per host: Fluent Bit/Vector reading journald and /var/log/*, or rsyslog forwarding over TLS:
*.* @@(o)logs.internal:6514
  1. Buffer on disk at the agent so outages don't lose logs.
  2. Store in Loki, Elasticsearch/OpenSearch or a cloud service; retention per log class.
  3. Add labels: host, env, service.
  4. Alerts on key events (auth failures, OOM kills, disk errors).

Why → Searchable history across hosts, and logs survive the host.

Interview tip → Mention that @@ in rsyslog means TCP and @ means UDP.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations