I want to write (or implement) a quick and easy logging solution for our website. I figure rss is fine for the format.
I was thinking of piping apache's error log to a simple script that, if the url passes a blacklist, gets logged into a sqlite database. The database will store for each log entry the ip address, url, current count of this error, hash of this error, datetime, etc.
I was going to capture javascript/ajax errors by having javasascript make image requests that will 404 so that they will get logged as well.
We already capture php errors in its own log. I could easily integrate it into this database. Another script would be used to generate the rss.
I was hoping logrotate would handle rotating the sqlite database file to prevent it from getting too large.
Granted this won't scale, are there any issues I should avoid? Better quick and hacky solutions?