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

Cap number of log files

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.2
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • 3
    • Needed
    • Hide

      Log retention, which is documented at https://www.mongodb.com/docs/mongodb-shell/logs/ will need to be updated. We'll retain logs for 30 days but also cap them to 100 log files.

      Show
      Log retention, which is documented at https://www.mongodb.com/docs/mongodb-shell/logs/ will need to be updated. We'll retain logs for 30 days but also cap them to 100 log files.
    • Iteration Edmontonia

      A large number of log files affects the shell startup time (the shell checks which files can be deleted according with the 30 days retention policy, so it has to go through all the files). This is especially problematic when log files are loaded from a network filesystem.

      We should enhance the log retention behavior so in addition to deleting log files that are older than 30 days, we also cap the number of log files we store. Not sure what a good number is (100?) and if we should consider making this number configurable with a default that we think makes sense.
      Created with Jira Integration+ for massimiliano.marcon (massimiliano.marcon@mongodb.com)

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: