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 →
- Agent per host: Fluent Bit/Vector reading journald and
/var/log/*, or rsyslog forwarding over TLS:
*.* @@(o)logs.internal:6514
- Buffer on disk at the agent so outages don't lose logs.
- Store in Loki, Elasticsearch/OpenSearch or a cloud service; retention per log class.
- Add labels: host, env, service.
- 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.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?Beginner