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
100.6.0 supports the following versions
of the MongoDB Server:
bsondump may work on earlier versions of MongoDB server,
any such compatibility is not guaranteed.
100.6.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:
Returns information on the options and use of
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
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.
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