OS Manuals

/usr/bin/pt-mongodb-query-digest

Toolkit for MySQL/MariaDB

From percona-toolkit 3.7.2-r2 (enterprise-packages), captured 2026-11-08 by running pt-mongodb-query-digest --help (exit 0). permalink

Also provided by 1 other package version
Usage: pt-mongodb-query-digest [-?cv] [-a Database to use for optional MongoDB authentication. Default: admin] [-d MongoDB database to profile] [-f Output format: text, json. Default: text] [-l panic, fatal, error, warn, info, debug. Default: error] [-n value] [-o value] [-p Password to use for optional MongoDB authentication] [-s value] [--sslCAFile value] [--sslPEMKeyFile value] [-u value] host[:port]
 -?, --help         Show help
 -a, --authenticationDatabase=Database to use for optional MongoDB authentication. Default: admin
                    admin
 -c, --no-version-check
                    Default: Don't check for updates
 -d, --database=MongoDB database to profile
 -f, --output-format=Output format: text, json. Default: text
                    text
 -l, --log-level=panic, fatal, error, warn, info, debug. Default: error
                    Log level: error
 -n, --limit=value  Show the first n queries
 -o, --order-by=value
                    Comma separated list of order by fields (max values):
                    count,ratio,query-time,docs-scanned,docs-returned. - in
                    front of the field name denotes reverse order. Default:
                    -count
 -p, --password[=Password to use for optional MongoDB authentication]
 -s, --skip-collections=value
                    A comma separated list of collections (namespaces) to skip.
                    Default: system.profile
     --sslCAFile=value
                    SSL CA cert file used for authentication
     --sslPEMKeyFile=value
                    SSL client PEM file used for authentication
 -u, --username=value
                    Username to use for optional MongoDB authentication
 -v, --version      Show version & exit
Options (9)
OptionDescriptionSource
-?, --helpShow helphelp
-c, --no-version-checkDefault: Don't check for updateshelp
-n, --limit valueShow the first n querieshelp
-o, --order-by valueComma separated list of order by fields (max values): count,ratio,query-time,docs-scanned,docs-returned.help
-s, --skip-collections valueA comma separated list of collections (namespaces) to skip.help
--sslCAFile valueSSL CA cert file used for authenticationhelp
--sslPEMKeyFile valueSSL client PEM file used for authenticationhelp
-u, --username valueUsername to use for optional MongoDB authenticationhelp
-v, --versionShow version & exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.