pages_nginx['log_format'] is not being used
In Omnibus GitLab (currently v9.4.3 but also earlier versions) the setting pages_nginx['log_format']
in gitlab.rb
is not being copied to the actual nginx settings in /var/opt/gitlab/nginx/conf/nginx.conf
. In this file it says
log_format gitlab_access '$remote_addr - $remote_user [$time_local] "$host" "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
log_format gitlab_mattermost_access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
though there is not even a setting mattermost_nginx['log_format']
set in gitlab.rb
(nor commented).
Instead, the settings from nginx['log_format']
are being used as well in /var/log/gitlab/nginx/gitlab_pages_access.log
and any settings in pages_nginx['log_format']
are being ignored.