Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
c2da4555
Commit
c2da4555
authored
Mar 01, 2018
by
Andrew Newdigate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation WRT to request parameters
parent
daa0c929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
doc/administration/logs.md
doc/administration/logs.md
+2
-1
No files found.
doc/administration/logs.md
View file @
c2da4555
...
@@ -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