[SERVER-7091] Include authenticated user in log messages Created: 21/Sep/12 Updated: 20/Mar/13 Resolved: 18/Dec/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging, Security |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | 2.3.2 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Andy Schwerin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Participants: | |||||||||||||||||
| Comments |
| Comment by Andy Schwerin [ 18/Dec/12 ] | |
|
To enable user-name logging, pass "--setParameter logUserIds=1" on the mongod or mongos command line. When authenticated users are present on a connection, log lines from those connections will contain a list of users, prefixed with "user:". For example:
| |
| Comment by auto [ 18/Dec/12 ] | |
|
Author: {u'date': u'2012-12-12T20:14:02Z', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}Message: | |
| Comment by auto [ 14/Dec/12 ] | |
|
Author: {u'date': u'2012-12-13T00:32:44Z', u'email': u'schwerin@10gen.com', u'name': u'Andy Schwerin'}Message: |