Post TSM Logs to Slack

Using TSM as your backup solution, the way to know if your backup is ok is to check the logs. Now we all know that going through¬†logs on a bunch of servers isn’t that much fun.
Let’s use PowerShell to read the logs, parse out the good stuff and post it to Slack instead.

All that is needed, enter your servers and update the webhook URL

The script will loop through the servers and read the logs.
The interesting part is between

If STATUS BEGIN is not found a warning is posted instead.

The script (Send-TSMLogToSlack.ps1) is available on Github

This is what it looks like.


I have scheduled this to run every morning.
So I can sit back and enjoy that morning coffee while scrolling through the log channel.