Gitlab 系统Log文件对应操作关系List

Gitlab 系统Log文件位置:

            /var/log/gitlab/

页面操作Log:/var/log/gitlab/gitlab-rails/production.log

            Started GET "*?page=2" for 192.168.xx.xx at 2017-04-24 19:00:34 +0800
            Processing by Projects::ProjectMembersController#index as HTML
              Parameters: {"page"=>"2", "namespace_id"=>"xxx", "project_id"=>"xxxx"}

同步代码Log:/var/log/gitlab/gitlab-rails/production.log

如:

            Started GET "*.git/info/refs?service=git-upload-pack" for 192.168.xx.xx at 2017-04-24 19:00:34 +0800
            Processing by Projects::GitHttpController#info_refs as */*
            Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"xxxx", "project_id"=>"xxxx.git"}

push代码Log:/var/log/gitlab/gitlab-rails/production.log

如:

                            Started GET "/api/v3/internal/merge_request_urls?project=/gitlab-server_all_path.git&changes=8fb4e8e9ede9296daf4ff1d4280bcf933957d6f8%2034c92dc6b6a447f51d048f0956e1472d91d9f87a%20refs/heads/master%0A" for 127.0.0.1 at 2017-04-24 19:04:51 +0800

API操作:

Started POST “/api/v3/projects/438/members” for 192.168.xx.xx at 2017-04-24 17:37:34 +0800
Started PUT “/api/v3/projects/438/members” for 192.168.xx.xx at 2017-04-24 18:21:10 +0800

user project 创建删除:/var/log/gitlab/application.log

分支TAG Commit 更新记录:/var/log/gitlab/gitlab-shell/gitlab-shell.log

nginx 交互Log:/var/log/gitlab/nginx/gitlab_access.log

    git push:
    192.168.xx.xx- dongwuming [24/Apr/2017:19:55:21 +0800] "GET /QA/Test.git/info/refs?service=git-receive-pack HTTP/1.1" 200 2645 "-" "git/2.6.2"
    192.168.xx.xx - dongwuming [24/Apr/2017:19:55:22 +0800] "POST /xx/xx.git/git-receive-pack HTTP/1.1" 200 52 "-" "git/2.6.2"
    git pull:
    192.168.xx.xx - dongwuming [24/Apr/2017:19:56:26 +0800] "GET /xx/xx.git/info/refs?service=git-upload-pack HTTP/1.1" 200 2974 "-" "git/2.6.2"
    web操作:
    192.168.xx.xx - - [24/Apr/2017:20:22:12 +0800] "GET /xx/xx/project_members?page=2 HTTP/1.1" 200 8606 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36"

Api PUT操作:

    192.168.xx.xx - - [24/Apr/2017:20:21:41 +0800] "PUT /api/v3/projects/438/members/200 HTTP/1.1" 200 233 "-" "curl/7.35.0"

Api POST操作:

    192.168.xx.xx - - [24/Apr/2017:20:36:37 +0800] "POST /api/v3/projects/438/members HTTP/1.1" 201 233 "-" "curl/7.35.0"

你可能感兴趣的:(linux,git,gitlab-使用)