bsondump is a diagnostic tool for inspecting
BSON files, not a tool for data ingestion or other application use.
Starting with MongoDB 4.4,
bsondump is now released separately
from the MongoDB Server and uses its own versioning, with an initial
bsondump was released
alongside the MongoDB Server and used matching versioning.
This documentation is for version
MongoDB Server Compatibility¶
100.5.0 supports the following versions
of the MongoDB Server:
- MongoDB 5.0
- MongoDB 4.4
- MongoDB 4.2
- MongoDB 4.0
bsondump may work on earlier versions of MongoDB server,
any such compatibility is not guaranteed.
100.5.0 is supported on the following
RHEL / CentOS 8
RHEL / CentOS 7
RHEL / CentOS 6
Windows 8 and later
Windows Server 2012 and later
macOS 10.12 or later
bsondump tool is part of the MongoDB Database Tools package:
Increases the amount of internal reporting returned on standard output or in log files. Increase the verbosity with the
-vform by including the option multiple times, (e.g.
bsondumpin a quiet mode that attempts to limit the amount of output.
This option suppresses:
- output from database commands
- replication activity
- connection accepted events
- connection closed events
Validates each BSON object before outputting it in JSON format. By default,
--objcheck. For objects with a high degree of sub-document nesting,
--objcheckcan have a small impact on performance.
Outputs documents in a pretty-printed format JSON.
bsondumpreads from standard input.
bsondump --outFile=collection.json collection.bson
Use the following command (at the system shell) to produce debugging output for a BSON file:
bsondump --type=debug collection.bson