summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2019-05-31 11:59:21 +0000
committerSean McGivern <sean@gitlab.com>2019-05-31 11:59:21 +0000
commit4e888212a1cdf5898c5cef69f5a2de909a275d31 (patch)
tree1fcf81e451b9e33cdba234c3a4a582e51ac7ce72 /doc
parent1523d0785755f4ba0679bc08ec370d8299b299f0 (diff)
parent699532232ca27e6079c553261e0ab1d17317472a (diff)
downloadgitlab-ce-4e888212a1cdf5898c5cef69f5a2de909a275d31.tar.gz
Merge branch '59587-add-graphql-logging' into 'master'
Add logging to GraphQL Closes #59587 See merge request gitlab-org/gitlab-ce!27885
Diffstat (limited to 'doc')
-rw-r--r--doc/administration/logs.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/administration/logs.md b/doc/administration/logs.md
index a7e57e44e86..ac41f9177dd 100644
--- a/doc/administration/logs.md
+++ b/doc/administration/logs.md
@@ -288,6 +288,20 @@ installations from source.
It logs information whenever [Rack Attack] registers an abusive request.
+## `graphql_json.log`
+
+> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/59587) in GitLab 12.0.
+
+This file lives in `/var/log/gitlab/gitlab-rails/graphql_json.log` for
+Omnibus GitLab packages or in `/home/git/gitlab/log/graphql_json.log` for
+installations from source.
+
+GraphQL queries are recorded in that file. For example:
+
+```json
+{"query_string":"query IntrospectionQuery{__schema {queryType { name },mutationType { name }}}...(etc)","variables":{"a":1,"b":2},"complexity":181,"depth":1,"duration":7}
+```
+
## Reconfigure Logs
Reconfigure log files live in `/var/log/gitlab/reconfigure` for Omnibus GitLab