This document discusses how the author automated log gathering in a distributed system using Perl. As a new developer on a large networking project, the author faced challenges in manually collecting logs from many boards to debug issues. The author developed a solution using the Expect Perl module to remotely login to each board, retrieve logs, and run commands. This allowed logs to be gathered automatically in minutes rather than the hours it took manually. The author's solution saved significant time and was used until more formal reporting tools were created.