Getting Started¶
Install¶
pip install -U queryhound
If qh isn’t found after install, open a new terminal. QueryHound attempts to add your user scripts directory to PATH automatically on first run (opt‑out with QUERYHOUND_SKIP_PATH_UPDATE=1).
Quick check¶
qh --version
qh --help
First exploration¶
Show slow queries with extended stats:
qh mongo.log --slow --pstats
List connection sources:
qh mongo.log --connections
Show only errors / fatals:
qh mongo.log --error
Show only warnings:
qh mongo.log --warn
Include warnings together with errors/fatals:
qh mongo.log --error --warn