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

Control logging behavior of mongosh

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.6.0
    • Component/s: Logging
    • None

      Is there any way to control the logging behavior of the mongosh, for example

      • verbosity
      • what to log
      • retention time when old log files are deleted

      or even disable logging completely?

      In my application I turned to mongosh, after a few days the HOME filesystem run out of disk space!

      The mongosh logs everything - every command and even the content of files loaded by load(...). This looks like an overkill to me.

       

      I created a cron job find ~/.mongodb/mongosh/ -mindepth 1 -mmin +60 -name "*_log" -delete but I don't think this could be the final solution.

       

      Kind Regards
      Wernfried

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            wernfried.domscheit@sunrise.net Wernfried Domscheit
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: