3 ms·
An example: I have a website and I don't need to know the IP addresses, browser info or referrer urls of visiting User Agents. So allowing Apache to log that i
by bahjoite 10y ago
An example: I have a website and I don't need to know the IP addresses, browser info or referrer urls of visiting User Agents. So allowing Apache to log that information would be "collecting too much data".
Thus, Apache is configured with the following LogFormat[0] which associates an explicit format[1] with a nickname (here, "essential"):-
LogFormat "%{%FT%T%z}t \"%r\" %>s %B %D %L" essential
and in VirtualHost contexts, a CustomLog[2]:-
CustomLog ${APACHE_LOG_DIR}/access.log essential
[0]: https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#logformat https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#lo...
[1]: https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#fo...
[2]: https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#customlog https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#cu...