For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.

agentengine debug logs get

Print a log file.

Print the contents of a log file.

Pass a filename from agentengine debug logs list, or use --last for the most recent log file. Without either, the command fails. --last skips the current invocation’s own log file. Output is raw JSON lines; --pretty indents and colorizes it.

Examples:

agentengine debug logs get --last --prettyagentengine debug logs get agentengine-2026-05-13T11-43-57Z-12345.log
agentengine debug logs get [logfile] [flags]
-h, --help help for get --last Print the most recent log file --pretty Indent and colorize JSON output
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
Rate this page