Merge branch '43416-document-where-user-clone-fetch-activity-appears-in-the-logs' into 'master'

Resolve "document where user clone/fetch activity appears in the logs"

Closes #43416

See merge request gitlab-org/gitlab-ce!17227
parents 275efeeb c8fb31f7
...@@ -32,6 +32,8 @@ In this example, you can see this was a GET request for a specific issue. Notice ...@@ -32,6 +32,8 @@ In this example, you can see this was a GET request for a specific issue. Notice
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
User clone/fetch activity using http transport appears in this log as `action: git_upload_pack`.
In addition, the log contains the IP address from which the request originated In addition, the log contains the IP address from which the request originated
(`remote_ip`) as well as the user's ID (`user_id`), and username (`username`). (`remote_ip`) as well as the user's ID (`user_id`), and username (`username`).
...@@ -157,6 +159,8 @@ I, [2015-02-13T06:17:00.671315 #9291] INFO -- : Adding project root/example.git ...@@ -157,6 +159,8 @@ I, [2015-02-13T06:17:00.671315 #9291] INFO -- : Adding project root/example.git
I, [2015-02-13T06:17:00.679433 #9291] INFO -- : Moving existing hooks directory and symlinking global hooks directory for /var/opt/gitlab/git-data/repositories/root/example.git. I, [2015-02-13T06:17:00.679433 #9291] INFO -- : Moving existing hooks directory and symlinking global hooks directory for /var/opt/gitlab/git-data/repositories/root/example.git.
``` ```
User clone/fetch activity using ssh transport appears in this log as `executing git command <gitaly-upload-pack...`.
## `unicorn\_stderr.log` ## `unicorn\_stderr.log`
This file lives in `/var/log/gitlab/unicorn/unicorn_stderr.log` for This file lives in `/var/log/gitlab/unicorn/unicorn_stderr.log` for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment