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

Improve error and warning reporting in logs

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.2.0
    • Component/s: Admin, Logging
    • Labels:
      None
    • Environment:
      RHEL

      Currently the only advice offered to monitor for errors and warnings in the MongoDB logs (for mongod, mongos and config server) is to search for the strings "error" and "warning". This tends to return too much information even when just using default verbosity for the logging and gives no indication of their criticality. Additionally much of the information returned is just noise rather than real warnings or errors (e.g. getlasterror messages).

      There should be a standard format for errors and warnings which includes an indication of their criticality, e.g.:

      ERROR-CRITICAL:
      ERROR-MAJOR:
      ERROR-MINOR:
      WARNING:

      This would greatly help with automated monitoring of the logs and enable a focus on the most critical issues and so a quicker response to fix issues.

            Assignee:
            Unassigned Unassigned
            Reporter:
            simon.harvey@citi.com Simon Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: