Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59246

How can we set the MongoDB log rotation policy on Windows

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.4
    • Component/s: None
    • Labels:
      None
    • Server Triage

      We have had MongoDB service running continuously for a couple of months now, and we have observed that the mongo service log size has been increased to more than 5GB. Due to which we are not able to check the log file for troubleshooting purpose. As the new log file gets created only when we restart the service, we want a way to enforce log rotation policy based on daily or log file size limit.
      We have tried the solution given in below links, but still not able to resolve this issue.
      https://docs.mongodb.com/manual/tutorial/rotate-log-files/
      https://serverfault.com/questions/876293/mongo-forcing-a-log-rotation-on-windows
      Can we get any suggestions, on this issue? Thanks in advance.

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            ndchavan4289@gmail.com Nandkishor Chavan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: