[SERVER-7662] Improve error and warning reporting in logs Created: 14/Nov/12  Updated: 14/Nov/12  Resolved: 14/Nov/12

Status: Closed
Project: Core Server
Component/s: Admin, Logging
Affects Version/s: 2.2.0
Fix Version/s: None

Type: Improvement Priority: Critical - P2
Reporter: Simon Harvey Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL


Issue Links:
Duplicate
duplicates SERVER-4217 add log severity and component name t... Closed
Participants:

 Description   

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.



 Comments   
Comment by Gianfranco Palumbo [ 14/Nov/12 ]

Simon,

This request has been already filled as SERVER-4217
At the moment if you want to retrieve more information you can use the db command e.g.:

  • db.setProfilingLevel(1, 15)

After enabling profiling, the output of the database profiler in the system.profile collection, inside the database where this profile has been enabled.

Here is the documentation for Profiling


Also the parameter logLevel is documented here:
http://docs.mongodb.org/manual/reference/command/setParameter/

Regards,
Gianfranco

Generated at Thu Feb 08 03:15:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.