# Looking for options to push pritunl's log data to another app for greater visibility

**URL:** <https://forum.pritunl.com/t/looking-for-options-to-push-pritunls-log-data-to-another-app-for-greater-visibility/563>\
**Category:** Pritunl\
**Created:** [November 23, 2022, 8:58pm UTC](https://forum.pritunl.com/t/looking-for-options-to-push-pritunls-log-data-to-another-app-for-greater-visibility/563 "2022-11-23T20:58:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kernull](https://forum.pritunl.com/user_avatar/forum.pritunl.com/kernull/32/143_2.png) [@kernull](https://forum.pritunl.com/u/kernull)\
**Post date:** [November 23, 2022, 8:58pm UTC](https://forum.pritunl.com/t/looking-for-options-to-push-pritunls-log-data-to-another-app-for-greater-visibility/563/1 "2022-11-23T20:58:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 23, 2022, 10:41pm UTC](https://forum.pritunl.com/t/looking-for-options-to-push-pritunls-log-data-to-another-app-for-greater-visibility/563/2 "2022-11-23T22:41:56Z")

</div>

The `user_connection` handler in the [**Plugin System**](https://docs.pritunl.com/docs/plugins) could be used for this. The synchronous plugin handlers should be avoided for this use case. An enterprise subscription is required for the plugin system.

---

<div class="post-metadata">

**Author:** ![kernull](https://forum.pritunl.com/user_avatar/forum.pritunl.com/kernull/32/143_2.png) [@kernull](https://forum.pritunl.com/u/kernull)\
**Post date:** [November 25, 2022, 10:34am UTC](https://forum.pritunl.com/t/looking-for-options-to-push-pritunls-log-data-to-another-app-for-greater-visibility/563/3 "2022-11-25T10:34:32Z")

</div>

zach- I honestly had not even looked into the enterprise features given that this is just a personal homelab installation, sorry to say I don’t have any kind of budget for services. I do thoroughly appreciate you providing a free version! I’ve been using it for a few years and it is rock solid and was very easy to set up!  
thanks!
