audit_json.log does not contain all audit events
Summary
audit_json.log does not contain all the audit events that are saved in the database.
This started from a Slack discussion
Steps to reproduce
Example Project
What is the current bug behavior?
Not all audit events are captured in the audit_json.log file that are captured in a CSV dump or the database.
What is the expected correct behavior?
The same content should be present in the audit_json.log file as a CSV dump as well as the database.
Relevant logs and/or screenshots
These logs are all from the same instance.
audit_json.log
audit-events-1652236852.csv
Note how there are 9 events in the CSV file and picture, but only 6 events in the .log file.
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)