I have a mod_security log parsing script to load data into a mysql database which is then accessed by our Project Management System to display recent flaggings by the rulesets for our developers.
The script works great, but I need to work out how it's called. I could add it to a cronjob but I am not sure about server load running it every 2-5 seconds.
I was wondering if there is any way to have the script called when the log file is written to?