mongo

A collection of 1 article

Mongo Active Connected Users

db.currentOp(true).inprog.reduce( (accumulator, connection) => { ipaddress = connection.client ? connection.client.split(":")[0] : "Internal"; accumulator[ipaddress] = (accumulator[ipaddress]

Read more →