I would like to know the logs of documents removed through TTL indexing.
I tried using db.setProfileLevel(2)
and searched the db.system.profile.find({op:"remove"}).pretty()
, but It returned nothing.
Can you please let me know the location of documents (kind of IDs
etc) which are automatically removed using the feature TTL MongoDB?