Troubleshooting

A web tier autoscales and terminates instances within a few hours of launch. When an instance is removed, its local /var/log files disappear, and administrators can no longer investigate errors from that instance. Which approach BEST preserves the log data?

Show the answer

Correct answerB. Run a log-forwarding agent that ships entries to a central log platform as they are written

Forwarding entries to a central log platform as they are written (log aggregation) keeps the data after an instance is terminated. A nightly rsync still loses everything written since the last run if an instance is removed earlier.