A cloud administrator is managing a microservices-based application deployed across dozens of virtual machines. Each service generates its own logs. The administrator finds it difficult and time-consuming to troubleshoot issues because they must sign into each virtual machine individually to view log files. Which of the following is the BEST solution to simplify log analysis and troubleshooting for this distributed application?
Write a script to manually copy the logs from each VM to a central storage bucket every night.
Disable logging for non-critical services to reduce the amount of data.
Implement a centralized logging solution to aggregate logs from all services.
Increase the log retention period on each individual virtual machine.
Implementing a centralized logging solution is the best practice for managing logs from distributed systems. This approach involves aggregating logs from all services and virtual machines into a single, searchable location. This greatly simplifies troubleshooting, allows for correlation of events across different services, and provides a unified view of the application's health. Manually copying logs is inefficient and not scalable. Increasing the retention period does not solve the problem of logs being scattered. Disabling logging would impede future troubleshooting efforts.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is centralizing log data from distributed workloads beneficial?
Open an interactive chat with Bash
What challenges arise when logs are scattered across multiple nodes?
Open an interactive chat with Bash
Are there tools that help centralize and analyze log data?