An other approach, if your application logs in its own file with rsyslog, you can use incron
.
incron
allow you to execute some commands on specifics filesystem events : when the log file is updated.
↧
Answer by f35 for Monitoring using rsyslog
↧