cscli collections install timokoessler/mongodbA collection to defend MongoDB against common attacks:
MongoDB version 4.4 or higher is required.
Example acquisition for a docker container:
1---2source: docker3container_name:4 - my_container_name5labels:6 type: mongodb
or for a log file:
1---2filenames:3 - /var/log/mongodb/mongodb.log4labels:5 type: mongodb
Depending on your installation method, paths to log files might change.