Some logging leaks into the dump when using mongodump with "--dbpath" and "--out -" options. For example:
$ sudo service mongodb stop mongodb stop/waiting $ sudo -u mongodb mongodump --dbpath /var/lib/mongodb/ -d datahub -c users --out - | dd bs=1M count=10 iflag=fullblock of=users.bson 10+0 records in 10+0 records out 10485760 bytes (10 MB) copied, 2.66285 s, 3.9 MB/s $ grep -a -F 'Wed Sep 25' users.bson # here grep outputs some logging statements intermixed with bson data
File users.bson is attached (it is a bunch of public data from one social network), so you can inspect it yourselves.
- duplicates
-
SERVER-10885 mongodump produces invalid bson when dumping to stdout in verbose mode
- Closed
- related to
-
SERVER-10989 --quiet flag does not suppress logged info messages for tools
- Closed