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

How can we set the MongoDB log rotation policy on Windows

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 4.0.4
    • None
    • None
    • Server Triage

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: