mongodb-logs
Retrieve recent MongoDB server logs for diagnostics. Filter by global events or startup warnings and limit entries to target specific issues.
Instructions
Returns the most recent logged mongod events
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The type of logs to return. Global returns all recent log entries, while startupWarnings returns only warnings and errors from when the process started. | global |
| limit | No | The maximum number of log entries to return. | |
| connectionId | Yes | The connection to run the operation against. Use the id returned by one of the connect tools, or "preconfigured" to use the connection string the server was configured with. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| shownCount | Yes | ||
| totalLinesWritten | Yes |