[SERVER-2790] Extend system profiler to include IP of connected client Created: 17/Mar/11  Updated: 12/Jul/16  Resolved: 31/Mar/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 1.8.0
Fix Version/s: 1.9.0

Type: Improvement Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Participants:

 Description   

Problem:

From the system profile, want to log client IP connection information.

Reproduce:
1. add data into a collection

> for (i=0; i < 100000; i++) { db.foo.insert(

{ author: 'jim', ts : new Date(i), tags : ["yes","no"] }

); }

2. enable profiling

> db.setProfilingLevel(2);

3. perform a query

> db.foo.find(

{author:'jim'}

)

4. look at the profile information

> db.system.profile.find().sort(

{ts:-1}

);
{ "ts" : ISODate("2011-03-17T21:45:07.650Z"), "info" : "query test.foo reslen:36 nscanned:0 \nquery:

{ author: \"jim\" }

nreturned:0 bytes:20", "millis" : 65 }

Business Case:
Ease of use



 Comments   
Comment by auto [ 31/Mar/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: put namespace and client ip in profile collection as fields SERVER-2790
Branch: master
https://github.com/mongodb/mongo/commit/e00f629ae1792ac430faa1aefb2c1c1588232139

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