The logging phase that mod_lua has access to is quite simple. When you use the
you can hook into the logging phase very early and either change the parameters of the request before logging occurs,
or you can opt to write to your own mod_lua log file thingy and omit the record from the 'official' log files.
Let's look at how you would create a custom handler that checks and omits certain requests from the log files:
#httpd.conf: LuaHookLog /etc/lua/scripts/logging.lua log_handler
-- logging.lua: function log_handler(r) if r.uri:match("/secret_area/") then return apache2.DONE -- skip the actual logging, this is secret! else return apache2.DECLINED -- pass the buck to the other logging handlers end end