Have an app that like many other apps has a timestamp in the filename. Would like to monitor this logfile without having to create a symlink.
Something like below.
check file foo.log
with path `ls -rt /var/log/foo*| tail -n1`
if content = "ERROR" then alert
Anyone have a solution for this given I don't believe it is supported by monit.
TIA.