I would like to set up some monitoring for a custom application. I want to be able to monitor when a service goes down or stops working and if this happens, find a way to receive these alerts via email. I have been researching and it looks like I can do the first part of this task using rsyslog. I wanted to confirm that this is possible.
So my question is, can you set up monitoring for an application using rsyslog? Say for instance using one of the local accounts local2?
If so, how does it determine the severity level of the logs from that application? i.e what constitutes a crit, alert or emerg? These all seem like the same severity to me.
Apologies if some of the terminology is off, I'm fairly new to Linux but any guidance would be appreciated.