| 1 | This is a parser for [MongoDB](https://www.mongodb.com/) logs. MongoDB version 4.4 or higher is required. |
| 2 | |
| 3 | Example acquisition for a docker container: |
| 4 | ```yaml |
| 5 | --- |
| 6 | source: docker |
| 7 | container_name: |
| 8 | - my_container_name |
| 9 | labels: |
| 10 | type: mongodb |
| 11 | ``` |
| 12 | |
| 13 | or for a log file: |
| 14 | ```yaml |
| 15 | --- |
| 16 | filenames: |
| 17 | - /var/log/mongodb/mongodb.log |
| 18 | labels: |
| 19 | type: mongodb |
| 20 | ``` |
| 21 | Depending on your installation method, paths to log files might change. |