I want to be able to retrospectively analyse the slow queries in my mongod log file. The current logging format for MongoDB is not conducive to doing do since slow queries output in the log cannot always be copied and pasted verbatim into the mongo shell. For example:
- nested field names are not quoted in the log, and this causes a parsing issue when pasting the output verbatim from the log output into a Mongo Shell.
- queries including binary data are stringified as "BinData...." whereas the query must be entered with "HexData..." in the shell