TrueNAS Scale - login Alerts

I want to be made aware everytime someone logs into TrueNAS (i.e. via email). I looked at the Alerts area and could see how to set this up. I have alerts for other things like failed Sync jobs etc.

I’ve installed a couple apps on TrueNAS Scale and about to expose the system to the web as it is also hosting Wordpress. And I want some way to know about unauthorized access as I’m the only person who should be accessing this.

I don’t know of any way to do it via the web UI but you could export the logs via syslog and build alerts that way.

Thanks @LTS_Tom, my inexperience (hobbyist playing on a homelab) is likely keeping me from fully understanding what you mean. Is there another system/app I would use to pull down the syslog and filter entries I want for alerts? Or do you mean there is some sort of scripting I could run to do this in Linux?

Tom is talking about using something like graylog to parse login messages from truenas and then graylog would notify you.

Yes, Graylog can take in the logs and then alerts can be built in Graylog.

Yes, but in this case you would only be exposing the WordPress admin interface to the internet, and even that is probably not a good idea, not to mention the TrueNAS admin interface, which you really shouldn’t expose to the internet :wink:

Either way, if you want to receive login notifications for WordPress or other applications hosted on your TrueNAS box, you’ll need to set up those notifications within the respective applications themselves. The same goes for a log server like Greylog. It would also need to parse the logs of the relevant applications rather than the TrueNAS logs.

1 Like