Python 100 project #40: Syslog Server

I’m using Sophos XG Firewall VM at home. It is fantastic in terms of the feature and UI, it really works well and suits my needs for daily web surfing (and its protection). But it lacks some enterprise features. One of the measure feature I need these kind of device is alert customization. It should be able to notify the admin if any changes(or event) occurs.

At this moment, it is in the vote list, but there is no plan this function to be supported. Hence I decided to use syslog to get customized alert in real time. As a first step, I searched python3 powered syslog server, and modified a bit.

 

Here is the syslog server output:

 

Here is the code: