Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
ea6ef4fe18c5
Commit
3f47d31d
authored
Mar 01, 2018
by
Andrew Newdigate
Browse files
Update documentation WRT to request parameters
parent
4c33fd02cba5
Changes
1
Show whitespace changes
Inline
Side-by-side
doc/administration/logs.md
View file @
ea6ef4fe
...
@@ -23,7 +23,7 @@ requests from the API are logged to a separate file in `api_json.log`.
...
@@ -23,7 +23,7 @@ requests from the API are logged to a separate file in `api_json.log`.
Each line contains a JSON line that can be ingested by Elasticsearch, Splunk, etc. For example:
Each line contains a JSON line that can be ingested by Elasticsearch, Splunk, etc. For example:
```
json
```
json
{
"method"
:
"GET"
,
"path"
:
"/gitlab/gitlab-ce/issues/1234"
,
"format"
:
"html"
,
"controller"
:
"Projects::IssuesController"
,
"action"
:
"show"
,
"status"
:
200
,
"duration"
:
229.03
,
"view"
:
174.07
,
"db"
:
13.24
,
"time"
:
"2017-08-08T20:15:54.821Z"
,
"params"
:{
"
namespace_id"
:
"gitlab"
,
"project_id"
:
"gitlab-ce"
,
"id"
:
"1234"
}
,
"remote_ip"
:
"18.245.0.1"
,
"user_id"
:
1
,
"username"
:
"admin"
}
{
"method"
:
"GET"
,
"path"
:
"/gitlab/gitlab-ce/issues/1234"
,
"format"
:
"html"
,
"controller"
:
"Projects::IssuesController"
,
"action"
:
"show"
,
"status"
:
200
,
"duration"
:
229.03
,
"view"
:
174.07
,
"db"
:
13.24
,
"time"
:
"2017-08-08T20:15:54.821Z"
,
"params"
:
[
{
"
key"
:
"param_key"
,
"value"
:
"param_value"
}]
,
"remote_ip"
:
"18.245.0.1"
,
"user_id"
:
1
,
"username"
:
"admin"
,
"gitaly_calls"
:
76
}
```
```
In this example, you can see this was a GET request for a specific issue. Notice each line also contains performance data:
In this example, you can see this was a GET request for a specific issue. Notice each line also contains performance data:
...
@@ -31,6 +31,7 @@ In this example, you can see this was a GET request for a specific issue. Notice
...
@@ -31,6 +31,7 @@ In this example, you can see this was a GET request for a specific issue. Notice
1.
`duration`
: the total time taken to retrieve the request
1.
`duration`
: the total time taken to retrieve the request
2.
`view`
: total time taken inside the Rails views
2.
`view`
: total time taken inside the Rails views
3.
`db`
: total time to retrieve data from the database
3.
`db`
: total time to retrieve data from the database
4.
`gitaly_calls`
: total number of calls made to Gitaly
User clone/fetch activity using http transport appears in this log as
`action: git_upload_pack`
.
User clone/fetch activity using http transport appears in this log as
`action: git_upload_pack`
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment