summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2019-05-24 00:45:02 +0000
committerStan Hu <stanhu@gmail.com>2019-05-24 00:45:02 +0000
commited8ebc635a06380e04f2e82df6e65095314a54d2 (patch)
tree20f6db06d89c676cdd54e8137ee180e426eb7e7e /lib
parentd64e6cabc71beaba5dc726aad76050ae61305016 (diff)
downloadgitlab-ce-ed8ebc635a06380e04f2e82df6e65095314a54d2.tar.gz
Changes RackAttack logger to use structured logs
Creates a new filename to register auth logs. This change should allow SRE's queries to make better queries through logging infrastructure. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54528
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/auth_logger.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/auth_logger.rb b/lib/gitlab/auth_logger.rb
new file mode 100644
index 00000000000..6d3edba02b0
--- /dev/null
+++ b/lib/gitlab/auth_logger.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+module Gitlab
+ class AuthLogger < Gitlab::JsonLogger
+ def self.file_name_noext
+ 'auth'
+ end
+ end
+end