I am facing a problem with some data in my current database. There is a collection which is being populated and update through a NodeJS application. This collection possess a children which is an array of objects. I've observed this array gets some objects which I am not sure how they got there. I have traced the application and made sure this is not the culprit.
Therefore I would like to know if there is any way to know what user and host updated a collection and the data it used. Or to get the log of run queries against a collection.
I have used
getLog but it's limited to 1024 characters so not that much to check there.
Edit 1 This is the config file:
# mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # Where and how to store data. storage: dbPath: /var/lib/mongodb journal: enabled: true # engine: # mmapv1: # wiredTiger: # where to write logging data. systemLog: destination: file logAppend: true path: /var/log/mongodb/mongod.log # network interfaces net: port: 27017 bindIp: 127.0.0.1 # how the process runs processManagement: timeZoneInfo: /usr/share/zoneinfo #security: #operationProfiling: #replication: #sharding: ## Enterprise-Only Options: #auditLog: #snmp: