TLDR: will reducing the lua module logging level to ‘warn’ result in any meaningful user-auth-logging feature loss? I would normally not think twice, but it otherwise seems so redundant to use the word “requires” as used below:
In an effort to reduce disk usage in /var/log, I’d like to trim the [lua:info]
fat out of our OOD instance’s ssl error log which is about 90% info lines:
# grep "\[lua:info\]" ondemand.hpc.nau.edu_error_ssl.log | wc -l
511692
# wc -l ondemand.hpc.nau.edu_error_ssl.log
555084
But I noticed this odd note in (only) the compiled ood-portal.conf:
“requires min log level: info”
$ grep -A6 -m1 Lua /etc/httpd/conf.d/ood-portal.conf
# Lua configuration
#
LuaRoot "/opt/ood/mod_ood_proxy/lib"
LogLevel lua_module:info
# Log authenticated user requests (requires min log level: info) <===
LuaHookLog logger.lua logger
$ grep -A6 -m1 Verbosity /etc/ood/config/ood_portal.yml
# Verbosity of the Lua module logging
# (see https://httpd.apache.org/docs/2.4/mod/core.html#loglevel)
# Example:
# lua_log_level: 'warn'
# Default: 'info' (get verbose logs)
#lua_log_level: 'info'
Kind of ambiguous:
Does that mean “any level, as long as it’s on” ?
…or does it mean “it needs to be minimally this verbose” ?
Thanks for listening!
-jason