in files/gitlab-cookbooks/gitlab/libraries/logging.rb [23:68]
def parse_udp_log_shipping
logging = Gitlab['logging']
return unless logging['udp_log_shipping_host']
Gitlab['remote_syslog']['enable'] ||= true
Gitlab['remote_syslog']['destination_host'] ||= logging['udp_log_shipping_host']
if logging['udp_log_shipping_port']
Gitlab['remote_syslog']['destination_port'] ||= logging['udp_log_shipping_port']
Gitlab['logging']['svlogd_udp'] ||= "#{logging['udp_log_shipping_host']}:#{logging['udp_log_shipping_port']}"
else
Gitlab['logging']['svlogd_udp'] ||= logging['udp_log_shipping_host']
end
%w(
alertmanager
geo-logcursor
geo-postgresql
gitaly
praefect
gitlab-pages
gitlab-shell
gitlab-workhorse
gitlab-exporter
logrotate
mailroom
mattermost
nginx
node-exporter
pgbouncer
postgres-exporter
postgresql
prometheus
redis
redis-exporter
registry
remote-syslog
sentinel
sidekiq
puma
storage-check
).each do |runit_sv|
Gitlab[SettingsDSL::Utils.node_attribute_key(runit_sv)]['svlogd_prefix'] ||= "#{Gitlab['node']['hostname']} #{runit_sv}: "
end
end