Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #22812
Closed
Open
Issue created Jun 15, 2018 by John Jarvis@jarvDeveloper

Implement json logging for application.log

The application.log is causing us difficulty (https://gitlab.com/gitlab-com/infrastructure/issues/4244#note_81693147). It would be helpful if it were structured as JSON and used the same timestamp format as other logs. For reference here are some other other log timestamp formats:

  • Gitaly 2018-05-23T13:41:10Z
  • Pages 2018-05-23T11:14:50Z
  • production_json 2018-05-23T15:24:23.915Z
  • geo 2018-05-23T16:04:23.624Z
  • sidekiq: 2018-05-23T14:40:00.808Z
  • api_json: 2018-05-23T15:47:07.471Z
  • gitlab-shell: 2018-05-23T15:45:56+00:00
  • application.log May 23, 2018 09:56

Proposal

Introduce a structured version of application.log:

  • Retain application.log.
  • Introduce a new structured logfile, application_json.log.
  • In the structured logfile, use a timestamp format that is consistent with other log files, e.g. 2018-05-23T15:24:23.915Z. This is being worked on in another issue.
Edited Jan 14, 2020 by Aakriti Gupta
Assignee
Assign to
Time tracking