Linux Key file Monitor - need to monitor /var/log/messages with current date . Currently have configured to alert "error" . But the issue is that even detecting old pattern with error .
Need help to alert only current error log messages .
Instead of doing this in the script, which is actually pretty hard I would recommend creating a cron job that executes the logrotate command to rotate your message logs daily.