Getting detailed git transaction logs.

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Getting detailed git transaction logs (aka push/pull/clone).

Release notes

Gitlab does not record specific git transaction (aka push/pull/clone), this feature is highly valuable by any company/organization
that requires high level of audit resolution and monitoring.

Problem to solve

add specific transaction on gitlab-shell.log (and its https equevalent) and/or provide json log format for easier parse.

Proposal

example gitlab-shell.log: current log line:

{"command":"git-receive-pack","correlation_id":"########################","git_protocol":"","gl_key_id":#,"gl_key_type":"key","gl_project_path":"root/tester","gl_repository":"project-example","level":"info","msg":"executing git command","remote_ip":"123.123.123.123","time":"2055-03-30T03:00:09Z","user_id":"git-user-1","username":"gituser1"}

proposed log line: {"command":"git-receive-pack","correlation_id":"########################","git_protocol":"","gl_key_id":#,"gl_key_type":"key","gl_project_path":"root/tester","gl_repository":"project-example","level":"info","msg":"executing git command","git_command": "push","remote_ip":"123.123.123.123","time":"2055-03-30T03:00:09Z","user_id":"git-user-1","username":"gituser1"}

Please note that this has been achieved by 3rd party moders! nonetheless, 3rd party modding of containerized / omnibus installation is not at all advised and not at all an option for production environments to use! reference: https://github.com/kfei/gitlab-auditor#apply-patches-to-gitlab-services

Intended users

Admins, Analysts, Forensic experts, Auditors, etc...

Personas are described at https://about.gitlab.com/handbook/marketing/product-marketing/roles-personas/

  • Cameron (Compliance Manager)
  • Parker (Product Manager)
  • Delaney (Development Team Lead)
  • Presley (Product Designer)
  • Sasha (Software Developer)
  • Priyanka (Platform Engineer)
  • Sidney (Systems Administrator)
  • Sam (Security Analyst)
  • Rachel (Release Manager)
  • Alex (Security Operations Engineer)
  • Simone (Software Engineer in Test)
  • Allison (Application Ops)
  • Ingrid (Infrastructure Operator)
  • Dakota (Application Development Director)
  • Dana (Data Analyst)
  • Eddie (Content Editor) -->

Feature Usage Metrics

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading