Back to side quests
Discord Bot for Server Logs
Piping SSH attempts into a Discord channel
2024GoLinuxDiscord API
The Idea
I got tired of tailing auth.log to see who was trying to brute-force my VPS. I wrote a small Go daemon that uses fsnotify to watch the log files, regex-matches failed SSH attempts, resolves the IP via a GeoIP database, and fires a webhook into a private Discord channel.