add gitlab-ctl reconfigure logs to centralized logging
On every vm that has the omnibus we have logs for reconfigure:
/var/log/gitlab/reconfigure
-rw-r--r-- 1 root root 2820 Jul 13 10:39 1531478365.log
-rw-r--r-- 1 root root 5887 Jul 12 17:35 1531416904.log
-rw-r--r-- 1 root root 3087 Jul 11 19:00 1531335627.log
-rw-r--r-- 1 root root 3087 Jul 11 18:41 1531334478.log
with unstructured content like:
# Logfile created on 2018-07-13 10:39:25 +0000 by logger.rb/56815
[2018-07-13T10:39:25+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded
One version per cookbook
[2018-07-13T10:39:25+00:00] INFO: *** Chef 13.6.4 ***
[2018-07-13T10:39:25+00:00] INFO: Platform: x86_64-linux
[2018-07-13T10:39:25+00:00] INFO: Chef-client pid: 115826
[2018-07-13T10:39:25+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
[2018-07-13T10:39:27+00:00] INFO: Setting the run_list to ["recipe[gitlab-ee]"] from CLI options
[2018-07-13T10:39:27+00:00] INFO: Run List is [recipe[gitlab-ee]]
It would be great to have this in centralized logging so we can check when reconfigures are run, when services are restarted, etc. I assume that every line will start with the same timestamp field.
I'm not sure what our options for when there is a new file created for every run, does fluentd support it?