Chiamaka Obitube
Devylawyer's Blog

Devylawyer's Blog

Logrotate your logfiles and upload to Amazon S3

Apr 22, 20213 min read

This is a simple tutorial on how to archive and compress log files using the logrotate command and upload the archived logs to an AWS S3 Bucket. Why do we need to archive and keep log files? Troubleshooting purposes, Compliance purposes, legal retent...