I want to get a msg or alert when a user logs in to a server. The easiest way my smooth-brain can think of is through the python Apprise library - then push it to discord or another messaging app…
But how do I get a python script to be aware of any newline/new data added to the pritunl log file? Instead of polling at some rate and potentially missing info, I was wondering if I could use pritunl in a fashion where it would be capable of pushing log data over a TCP pipe like rsyslog uses (I think, I’m talking about the 127.0.0.1 local0
syntax used to specify what log data goes to which log file through rsyslog). Or could a .sock file entry into pritunl.conf work?
Thanks for reading