Need to monitor dynamic logfile through SiteScope
I am having one requirement to monitor one dynamic logfile which creates many times on daily basis.
Here I need to check latest file in directory then put the name.
Here I can use ls -lrt | tail -1 for file name. Here how I would provide name in monitor if path is /var/opt/share.
I need to monitor /var/opt/share/"ls -lrt | tail -1" file.
How I can do this?