Error in include template "/var/www/openacs/packages/openacs-bootstrap3-theme/resources/templates/packages/forums/lib/search/search-form": can't read "form:id": no such variable
I'd stick with the access logs and avoid per-incident db inserts. Bogus 404's tend to proliferate during virus attacks, so you'd be chipping away at the virtue of not running IIS.