Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1985

Custom log retention in GB

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration U (Jan 27 - Feb 10), Iteration Venus
    • Not Needed
    • Developer Tools

      Extend CliUserConfig with the `logRetentionGB` setting to allow users to specify an upper limit to the total size of the logs directory in GB (float, can be less than 1, no default value). We will not set an individual limit to the size of log files since we want to retain the current behavior of a new log file per session. As sessions can produce varied sizes of log files, we want to enforce this by the total storage used by mongosh logs.

      This `logRetentionGB` setting should work in combination with the `logRetentionDays` and `logMaxFileCount` setting. See tech design for more details.

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: