Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
Mongodb list previous queries

Is it possible to find a list of previous actions towards Mongodb?

I have a Mongodb on a linux server and some suspicious queries might've been executed, is there any way to show list of previous queries?

I called these two methods:

db.getProfilingStatus()
db.getProfilingLevel()

Output:

{ "was" : 0, "slowms" : 100 }

0

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

MongoDB does not log any database operations by default.

In order to log every operations done by the service you have to either
Set profiling level in the config file and restart service

operationProfiling:
   mode: all

or run the following command in the database instance (does not persist after service restart)

db.setProfilingLevel(2)

Note that this is for development porpuses only cuz this will slows down your database service.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!