{"t":{"$date":"2022-01-17T18:20:08.567Z"},"s":"I","c":"MONGOSH","id":1000000000,"ctx":"log","msg":"Starting log","attr":{"execPath":"/usr/local/Cellar/node@14/14.18.2/bin/node","envInfo":{"EDITOR":null,"NODE_OPTIONS":null,"TERM":"xterm-256color"},"version":"1.1.6","distributionKind":"packaged","buildArch":"x64","buildPlatform":"linux","buildTarget":"unknown","buildTime":"2021-12-02T16:06:35.739Z","gitVersion":"4268aec0cb368ad9e2c4a661628e64fe17b2da15","nodeVersion":"v14.18.2"}} {"t":{"$date":"2022-01-17T18:20:08.574Z"},"s":"I","c":"MONGOSH","id":1000000005,"ctx":"config","msg":"User updated","attr":{"enableTelemetry":true}} {"t":{"$date":"2022-01-17T18:20:08.622Z"},"s":"E","c":"MONGOSH-SP","id":1000000041,"ctx":"deps","msg":"Missing optional dependency","attr":{"name":"mongodb-client-encryption","error":"Cannot find module 'mongodb-client-encryption'\nRequire stack:\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/service-provider-server/lib/cli-service-provider.js\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/service-provider-server/lib/index.js\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/cli-repl.js\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/index.js\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/run.js\n- /usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/bin/mongosh.js"}} {"t":{"$date":"2022-01-17T18:20:08.998Z"},"s":"I","c":"MONGOSH-SP","id":1000000039,"ctx":"connect","msg":"Resolving SRV record succeeded","attr":{"from":"mongodb+srv://tcx-hub-tch-95tg2.qurxw.mongodb.net/myFirstDatabase","to":"mongodb://tcx-hub-tch-95tg2-shard-00-01.qurxw.mongodb.net,tcx-hub-tch-95tg2-shard-00-02.qurxw.mongodb.net,tcx-hub-tch-95tg2-shard-00-00.qurxw.mongodb.net/myFirstDatabase?authSource=admin&replicaSet=atlas-rnna8u-shard-0&tls=true"}} {"t":{"$date":"2022-01-17T18:20:09.012Z"},"s":"I","c":"MONGOSH-SP","id":1000000042,"ctx":"connect","msg":"Initiating connection attempt","attr":{"uri":"mongodb://tcx-hub-tch-95tg2-shard-00-01.qurxw.mongodb.net,tcx-hub-tch-95tg2-shard-00-02.qurxw.mongodb.net,tcx-hub-tch-95tg2-shard-00-00.qurxw.mongodb.net/myFirstDatabase?authSource=admin&replicaSet=atlas-rnna8u-shard-0&tls=true","driver":{"name":"nodejs","version":"4.2.1"},"serviceProviderVersion":"1.1.6","host":"tcx-hub-tch-95tg2-shard-00-01.qurxw.mongodb.net:27017,tcx-hub-tch-95tg2-shard-00-02.qurxw.mongodb.net:27017,tcx-hub-tch-95tg2-shard-00-00.qurxw.mongodb.net:27017"}} {"t":{"$date":"2022-01-17T18:20:09.362Z"},"s":"I","c":"MONGOSH-SP","id":1000000035,"ctx":"connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"tcx-hub-tch-95tg2-shard-00-02.qurxw.mongodb.net:27017"}} {"t":{"$date":"2022-01-17T18:20:09.366Z"},"s":"I","c":"MONGOSH-SP","id":1000000035,"ctx":"connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"tcx-hub-tch-95tg2-shard-00-01.qurxw.mongodb.net:27017"}} {"t":{"$date":"2022-01-17T18:20:09.442Z"},"s":"I","c":"MONGOSH-SP","id":1000000035,"ctx":"connect","msg":"Server heartbeat succeeded","attr":{"connectionId":"tcx-hub-tch-95tg2-shard-00-00.qurxw.mongodb.net:27017"}} {"t":{"$date":"2022-01-17T18:20:09.931Z"},"s":"I","c":"MONGOSH-SP","id":1000000037,"ctx":"connect","msg":"Connection attempt finished"} {"t":{"$date":"2022-01-17T18:20:10.567Z"},"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"61e5b358025954908da142fb","userId":"60410796ba2126da0321bf6e","connectionUri":"mongodb+srv://tcx-hub-tch-95tg2.qurxw.mongodb.net/myFirstDatabase","is_atlas":true,"is_localhost":false,"is_do":false,"server_version":"4.2.18","node_version":"v14.18.2","mongosh_version":"1.1.6","server_os":"linux","server_arch":"x86_64","is_enterprise":true,"auth_type":"DEFAULT","is_data_lake":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","fcv":"4.2","api_version":null,"api_strict":null,"api_deprecation_errors":null}} {"t":{"$date":"2022-01-17T18:20:10.571Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"myFirstDatabase","arguments":{"cmd":{"getLog":"startupWarnings"}}}} {"t":{"$date":"2022-01-17T18:20:10.571Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"myFirstDatabase","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:10.849Z"},"s":"I","c":"MONGOSH","id":1000000010,"ctx":"shell-api","msg":"Initialized context","attr":{"method":"setCtx","arguments":{}}} {"t":{"$date":"2022-01-17T18:20:10.852Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000024,"ctx":"snippets","msg":"Fetching snippet index","attr":{"refreshMode":"allow-cached"}} {"t":{"$date":"2022-01-17T18:20:10.852Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000019,"ctx":"snippets","msg":"Loaded snippets","attr":{"installdir":"/Users/steveh/.mongodb/mongosh/snippets"}} {"t":{"$date":"2022-01-17T18:20:10.856Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000027,"ctx":"snippets","msg":"Fetching snippet index done"} {"t":{"$date":"2022-01-17T18:20:10.859Z"},"s":"I","c":"MONGOSH-SNIPPETS","id":1000000030,"ctx":"snippets","msg":"Loading snippet","attr":{"source":"load-all","name":"@mongosh/snippet-mongocompat"}} {"t":{"$date":"2022-01-17T18:20:10.860Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":false,"filename":"/Users/steveh/.mongodb/mongosh/snippets/node_modules/@mongosh/snippet-mongocompat/index.js"}} {"t":{"$date":"2022-01-17T18:20:11.145Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"load(__dirname + '/mongonative.js');\nload(__dirname + '/mongoassert.js');\nload(__dirname + '/mongotypes.js');"}} {"t":{"$date":"2022-01-17T18:20:11.685Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":true,"filename":"/Users/steveh/.mongodb/mongosh/snippets/node_modules/@mongosh/snippet-mongocompat/mongonative.js"}} {"t":{"$date":"2022-01-17T18:20:11.874Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"var cd = process.chdir;\nvar getHostName = os.hostname;\nvar hostname = os.hostname;\nvar pwd = process.cwd;\nvar _rand = Math.random;\nvar _isWindows = () => process.platform === 'win32';\n\nfunction cat(filename, useBinaryMode) {\n let contents = fs.readFileSync(filename, 'utf8');\n if (!useBinaryMode && _isWindows()) {\n contents = contents.replace(/(? !arg.startsWith('-'));\n if (argv.includes('--nodb')) {\n return loadedFiles.length === 0;\n } else {\n return loadedFiles.length <= 1;\n }\n}\n\nfunction listFiles(dir = '.') {\n const files = fs.readdirSync(dir, { withFileTypes: true });\n return files.map(dirent => {\n const obj = { baseName: dirent.name, name: path.join(dir, dirent.name) };\n obj.isDirectory = dirent.isDirectory();\n if (dirent.isFile()) {\n obj.size = fs.statSync(obj.name).size;\n }\n return obj;\n });\n}\n\nfunction ls(dir) {\n return listFiles(dir).map(file => file.name);\n}\n\nfunction md5sumFile(filename) {\n return crypto.createHash('md5').update(fs.readFileSync(filename)).digest('hex');\n}\n\nfunction mkdir(path) {\n const ret = fs.mkdirSync(path, { recursive: true });\n if (ret === undefined) {\n return { exists: true, created: false };\n } else {\n return { exists: true, created: true };\n }\n}\n\nfunction removeFile(path) {\n let existed = false;\n try {\n fs.statSync(path);\n existed = true;\n } catch {}\n fs.rmSync(path, { recursive: true, force: true });\n return existed;\n}"}} {"t":{"$date":"2022-01-17T18:20:11.879Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":true,"filename":"/Users/steveh/.mongodb/mongosh/snippets/node_modules/@mongosh/snippet-mongocompat/mongoassert.js"}} {"t":{"$date":"2022-01-17T18:20:12.735Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"doassert = function(msg, obj) {\n // eval if msg is a function\n if (typeof (msg) == \"function\")\n msg = msg();\n\n if (typeof (msg) == \"object\")\n msg = tojson(msg);\n\n /*if (jsTest.options().traceExceptions) {\n if (typeof (msg) == \"string\" && msg.indexOf(\"assert\") == 0)\n print(msg);\n else\n print(\"assert: \" + msg);\n }*/\n\n var ex;\n if (obj) {\n ex = _getErrorWithCode(obj, msg);\n } else {\n ex = Error(msg);\n }\n /*if (jsTest.options().traceExceptions) {\n print(ex.stack);\n }*/\n throw ex;\n};\n\n// Sort doc/obj fields and return new sorted obj\nsortDoc = function(doc) {\n // Helper to sort the elements of the array\n var sortElementsOfArray = function(arr) {\n var newArr = [];\n if (!arr || arr.constructor != Array)\n return arr;\n for (var i = 0; i < arr.length; i++) {\n newArr.push(sortDoc(arr[i]));\n }\n return newArr;\n };\n\n // not a container we can sort\n if (!(doc instanceof Object))\n return doc;\n\n // if it an array, sort the elements\n if (doc.constructor == Array)\n return sortElementsOfArray(doc);\n\n var newDoc = {};\n var fields = Object.keys(doc);\n if (fields.length > 0) {\n fields.sort();\n for (var i = 0; i < fields.length; i++) {\n var field = fields[i];\n if (doc.hasOwnProperty(field)) {\n var tmp = doc[field];\n\n if (tmp) {\n // Sort recursively for Arrays and Objects (including bson ones)\n if (tmp.constructor == Array)\n tmp = sortElementsOfArray(tmp);\n else if (tmp._bson || tmp.constructor == Object)\n tmp = sortDoc(tmp);\n }\n newDoc[field] = tmp;\n }\n }\n } else {\n newDoc = doc;\n }\n\n return newDoc;\n};\n\n/*\n * This function transforms a given function, 'func', into a function 'safeFunc',\n * where 'safeFunc' matches the behavior of 'func', except that it returns false\n * in any instance where 'func' throws an exception. 'safeFunc' also prints\n * message 'excMsg' upon catching such a thrown exception.\n */\nfunction _convertExceptionToReturnStatus(func, excMsg) {\n var safeFunc = () => {\n try {\n return func();\n } catch (e) {\n print(excMsg + \", exception: \" + e);\n return false;\n }\n };\n return safeFunc;\n}\n\nassert = (function() {\n // Wrapping the helper function in an IIFE to avoid polluting the global namespace.\n\n function _processMsg(msg) {\n if (typeof msg === \"function\") {\n return msg();\n } else if (typeof msg === \"object\") {\n return tojson(msg);\n }\n\n return msg;\n }\n\n function _validateAssertionMessage(msg) {\n if (msg) {\n if (typeof msg === \"function\") {\n if (msg.length !== 0) {\n doassert(\"msg function cannot expect any parameters.\");\n }\n } else if (typeof msg !== \"string\" && typeof msg !== \"object\") {\n doassert(\"msg parameter must be a string, function or object.\");\n }\n\n if (msg && assert._debug) {\n print(\"in assert for: \" + _processMsg(msg));\n }\n }\n }\n\n function _buildAssertionMessage(msg, prefix) {\n var fullMessage = '';\n\n if (prefix) {\n fullMessage += prefix;\n }\n\n if (prefix && msg) {\n fullMessage += ' : ';\n }\n\n if (msg) {\n fullMessage += _processMsg(msg);\n }\n\n return fullMessage;\n }\n\n assert.automsg = function(b) {\n assert(eval(b), b);\n };\n\n assert._debug = false;\n\n function _isEq(a, b) {\n if (a == b) {\n return true;\n }\n\n if ((a != null && b != null) && friendlyEqual(a, b)) {\n return true;\n }\n\n return false;\n }\n\n assert.eq = function(a, b, msg) {\n _validateAssertionMessage(msg);\n\n if (_isEq(a, b)) {\n return;\n }\n\n doassert(_buildAssertionMessage(\n msg, \"[\" + tojson(a) + \"] != [\" + tojson(b) + \"] are not equal\"));\n };\n\n function _isDocEq(a, b) {\n if (a == b) {\n return true;\n }\n\n var aSorted = sortDoc(a);\n var bSorted = sortDoc(b);\n\n if ((aSorted != null && bSorted != null) && friendlyEqual(aSorted, bSorted)) {\n return true;\n }\n\n return false;\n }\n\n assert.docEq = function(a, b, msg) {\n _validateAssertionMessage(msg);\n\n if (_isDocEq(a, b)) {\n return;\n }\n\n doassert(_buildAssertionMessage(\n msg, \"[\" + tojson(a) + \"] != [\" + tojson(b) + \"] are not equal\"));\n };\n\n assert.setEq = function(aSet, bSet, msg) {\n const failAssertion = function() {\n doassert(_buildAssertionMessage(msg, tojson(aSet) + \" != \" + tojson(bSet)));\n };\n if (aSet.size !== bSet.size) {\n failAssertion();\n }\n for (let a of aSet) {\n if (!bSet.has(a)) {\n failAssertion();\n }\n }\n };\n\n /**\n * Throws if the two arrays do not have the same members, in any order. By default, nested\n * arrays must have the same order to be considered equal.\n *\n * Optionally accepts a compareFn to compare values instead of using docEq.\n */\n assert.sameMembers = function(aArr, bArr, msg, compareFn = _isDocEq) {\n _validateAssertionMessage(msg);\n\n const failAssertion = function() {\n doassert(_buildAssertionMessage(msg, tojson(aArr) + \" != \" + tojson(bArr)));\n };\n\n if (aArr.length !== bArr.length) {\n failAssertion();\n }\n\n // Keep a set of which indices we've already used to avoid double counting values.\n const matchedIndicesInRight = new Set();\n for (let a of aArr) {\n let foundMatch = false;\n for (let i = 0; i < bArr.length; ++i) {\n // Sort both inputs in case either is a document. Note: by default this does not\n // sort any nested arrays.\n if (!matchedIndicesInRight.has(i) && compareFn(a, bArr[i])) {\n matchedIndicesInRight.add(i);\n foundMatch = true;\n break;\n }\n }\n if (!foundMatch) {\n failAssertion();\n }\n }\n };\n\n assert.eq.automsg = function(a, b) {\n assert.eq(eval(a), eval(b), \"[\" + a + \"] != [\" + b + \"]\");\n };\n\n assert.neq = function(a, b, msg) {\n _validateAssertionMessage(msg);\n\n if (!_isEq(a, b)) {\n return;\n }\n\n doassert(_buildAssertionMessage(msg, \"[\" + a + \"] != [\" + b + \"] are equal\"));\n };\n\n assert.hasFields = function(result, arr, msg) {\n var count = 0;\n if (!Array.isArray(arr)) {\n throw new Error(\"The second argument to assert.hasFields must be an array.\");\n }\n\n for (var field in result) {\n if (arr.includes(field)) {\n count += 1;\n }\n }\n\n if (count != arr.length) {\n doassert(_buildAssertionMessage(\n msg, \"Not all of the values from \" + tojson(arr) + \" were in \" + tojson(result)));\n }\n };\n\n assert.contains = function(o, arr, msg) {\n var wasIn = false;\n if (!Array.isArray(arr)) {\n throw new Error(\"The second argument to assert.contains must be an array.\");\n }\n\n for (var i = 0; i < arr.length; i++) {\n wasIn = arr[i] == o || ((arr[i] != null && o != null) && friendlyEqual(arr[i], o));\n if (wasIn) {\n break;\n }\n }\n\n if (!wasIn) {\n doassert(_buildAssertionMessage(msg, tojson(o) + \" was not in \" + tojson(arr)));\n }\n };\n\n assert.containsPrefix = function(prefix, arr, msg) {\n var wasIn = false;\n if (typeof (prefix) !== \"string\") {\n throw new Error(\"The first argument to containsPrefix must be a string.\");\n }\n if (!Array.isArray(arr)) {\n throw new Error(\"The second argument to containsPrefix must be an array.\");\n }\n\n for (let i = 0; i < arr.length; i++) {\n if (typeof (arr[i]) !== \"string\") {\n continue;\n }\n\n wasIn = arr[i].startsWith(prefix);\n if (wasIn) {\n break;\n }\n }\n\n if (!wasIn) {\n doassert(_buildAssertionMessage(\n msg, tojson(prefix) + \" was not a prefix in \" + tojson(arr)));\n }\n };\n\n /*\n * Calls a function 'func' at repeated intervals until either func() returns true\n * or more than 'timeout' milliseconds have elapsed. Throws an exception with\n * message 'msg' after timing out.\n */\n assert.soon = function(func, msg, timeout, interval, {runHangAnalyzer = true} = {}) {\n _validateAssertionMessage(msg);\n\n var msgPrefix = \"assert.soon failed: \" + func;\n\n if (msg) {\n if (typeof (msg) != \"function\") {\n msgPrefix = \"assert.soon failed, msg\";\n }\n }\n\n var start = new Date();\n\n if (TestData && TestData.inEvergreen) {\n timeout = timeout || 10 * 60 * 1000;\n } else {\n timeout = timeout || 90 * 1000;\n }\n\n interval = interval || 200;\n\n while (1) {\n if (typeof (func) == \"string\") {\n if (eval(func))\n return;\n } else {\n if (func())\n return;\n }\n\n diff = (new Date()).getTime() - start.getTime();\n if (diff > timeout) {\n msg = _buildAssertionMessage(msg, msgPrefix);\n if (runHangAnalyzer) {\n msg = msg +\n \" The hang analyzer is automatically called in assert.soon functions.\" +\n \" If you are *expecting* assert.soon to possibly fail, call assert.soon\" +\n \" with {runHangAnalyzer: false} as the fifth argument\" +\n \" (you can fill unused arguments with `undefined`).\";\n print(msg + \" Running hang analyzer from assert.soon.\");\n MongoRunner.runHangAnalyzer();\n }\n doassert(msg);\n } else {\n sleep(interval);\n }\n }\n };\n\n /*\n * Calls a function 'func' at repeated intervals until either func() returns true without\n * throwing an exception or more than 'timeout' milliseconds have elapsed. Throws an exception\n * with message 'msg' after timing out.\n */\n assert.soonNoExcept = function(func, msg, timeout, interval) {\n var safeFunc =\n _convertExceptionToReturnStatus(func, \"assert.soonNoExcept caught exception\");\n var getFunc = () => {\n // No TestData means not running from resmoke. Non-resmoke tests usually don't trace\n // exceptions.\n if (typeof TestData === \"undefined\") {\n return safeFunc;\n }\n return () => {\n // Turns off printing the JavaScript stacktrace in doassert() to avoid\n // generating an overwhelming amount of log messages when handling transient\n // errors.\n const origTraceExceptions = TestData.traceExceptions;\n TestData.traceExceptions = false;\n\n const res = safeFunc();\n\n // Restore it's value to original value.\n TestData.traceExceptions = origTraceExceptions;\n return res;\n };\n };\n\n assert.soon(getFunc(), msg, timeout, interval);\n };\n\n /*\n * Calls the given function 'func' repeatedly at time intervals specified by\n * 'intervalMS' (milliseconds) until either func() returns true or the number of\n * attempted function calls is equal to 'num_attempts'. Throws an exception with\n * message 'msg' after all attempts are used up. If no 'intervalMS' argument is passed,\n * it defaults to 0.\n */\n assert.retry = function(func, msg, num_attempts, intervalMS, {runHangAnalyzer = true} = {}) {\n var intervalMS = intervalMS || 0;\n var attempts_made = 0;\n while (attempts_made < num_attempts) {\n if (func()) {\n return;\n } else {\n attempts_made += 1;\n print(\"assert.retry failed on attempt \" + attempts_made + \" of \" + num_attempts);\n sleep(intervalMS);\n }\n }\n // Used up all attempts\n msg = _buildAssertionMessage(msg);\n if (runHangAnalyzer) {\n msg = msg + \" The hang analyzer is automatically called in assert.retry functions. \" +\n \"If you are *expecting* assert.soon to possibly fail, call assert.retry \" +\n \"with {runHangAnalyzer: false} as the fifth argument \" +\n \"(you can fill unused arguments with `undefined`).\";\n print(msg + \" Running hang analyzer from assert.retry.\");\n MongoRunner.runHangAnalyzer();\n }\n doassert(msg);\n };\n\n /*\n * Calls the given function 'func' repeatedly at time intervals specified by\n * 'intervalMS' (milliseconds) until either func() returns true without throwing\n * an exception or the number of attempted function calls is equal to 'num_attempts'.\n * Throws an exception with message 'msg' after all attempts are used up. If no 'intervalMS'\n * argument is passed, it defaults to 0.\n */\n assert.retryNoExcept = function(func, msg, num_attempts, intervalMS) {\n var safeFunc =\n _convertExceptionToReturnStatus(func, \"assert.retryNoExcept caught exception\");\n assert.retry(safeFunc, msg, num_attempts, intervalMS);\n };\n\n /**\n * Runs the given command on the 'admin' database of the provided node. Asserts that the command\n * worked but allows network errors to occur.\n *\n * Returns the response if the command succeeded, or undefined if the command failed, *even* if\n * the failure was due to a network error.\n */\n assert.adminCommandWorkedAllowingNetworkError = function(node, commandObj) {\n let res;\n try {\n res = node.adminCommand(commandObj);\n assert.commandWorked(res);\n } catch (e) {\n // Ignore errors due to connection failures.\n if (!isNetworkError(e)) {\n throw e;\n }\n print(\"Caught network error: \" + tojson(e));\n }\n return res;\n };\n\n assert.time = function(f, msg, timeout /*ms*/, {runHangAnalyzer = true} = {}) {\n _validateAssertionMessage(msg);\n\n var start = new Date();\n timeout = timeout || 30000;\n if (typeof (f) == \"string\") {\n res = eval(f);\n } else {\n res = f();\n }\n\n diff = (new Date()).getTime() - start.getTime();\n if (diff > timeout) {\n const msgPrefix =\n \"assert.time failed timeout \" + timeout + \"ms took \" + diff + \"ms : \" + f + \", msg\";\n msg = _buildAssertionMessage(msg, msgPrefix);\n if (runHangAnalyzer) {\n msg = msg +\n \" The hang analyzer is automatically called in assert.time functions. \" +\n \"If you are *expecting* assert.soon to possibly fail, call assert.time \" +\n \"with {runHangAnalyzer: false} as the fourth argument \" +\n \"(you can fill unused arguments with `undefined`).\";\n print(msg + \" Running hang analyzer from assert.time.\");\n MongoRunner.runHangAnalyzer();\n }\n doassert(msg);\n }\n return res;\n };\n\n function assertThrowsHelper(func, params) {\n if (typeof func !== \"function\") {\n throw new Error('1st argument must be a function');\n }\n\n if (arguments.length >= 2 && !Array.isArray(params) &&\n Object.prototype.toString.call(params) !== \"[object Arguments]\") {\n throw new Error(\"2nd argument must be an Array or Arguments object\");\n }\n\n let thisKeywordWasUsed = false;\n\n const thisSpy = new Proxy({}, {\n has: () => {\n thisKeywordWasUsed = true;\n return false;\n },\n\n get: () => {\n thisKeywordWasUsed = true;\n return undefined;\n },\n\n set: () => {\n thisKeywordWasUsed = true;\n return false;\n },\n\n deleteProperty: () => {\n thisKeywordWasUsed = true;\n return false;\n }\n });\n\n let error = null;\n let res = null;\n try {\n res = func.apply(thisSpy, params);\n } catch (e) {\n error = e;\n }\n\n if (thisKeywordWasUsed) {\n doassert(\"Attempted to access 'this' during function call in\" +\n \" assert.throws/doesNotThrow. Instead, wrap the function argument in\" +\n \" another function.\");\n }\n\n return {error: error, res: res};\n }\n\n assert.throws = function(func, params, msg) {\n _validateAssertionMessage(msg);\n\n // Use .apply() instead of calling the function directly with explicit arguments to\n // preserve the length of the `arguments` object.\n const {error} = assertThrowsHelper.apply(null, arguments);\n\n if (!error) {\n doassert(_buildAssertionMessage(msg, \"did not throw exception\"));\n }\n\n return error;\n };\n\n assert.doesNotThrow = function(func, params, msg) {\n _validateAssertionMessage(msg);\n\n // Use .apply() instead of calling the function directly with explicit arguments to\n // preserve the length of the `arguments` object.\n const {error, res} = assertThrowsHelper.apply(null, arguments);\n\n if (error) {\n doassert(_buildAssertionMessage(msg, \"threw unexpected exception: \" + error));\n }\n\n return res;\n };\n\n assert.throws.automsg = function(func, params) {\n if (arguments.length === 1)\n params = [];\n assert.throws(func, params, func.toString());\n };\n\n assert.doesNotThrow.automsg = function(func, params) {\n if (arguments.length === 1)\n params = [];\n assert.doesNotThrow(func, params, func.toString());\n };\n\n function _rawReplyOkAndNoWriteErrors(raw, {ignoreWriteErrors, ignoreWriteConcernErrors} = {}) {\n if (raw.ok === 0) {\n return false;\n }\n\n // A write command response may have ok:1 but write errors.\n if (!ignoreWriteErrors && raw.hasOwnProperty(\"writeErrors\") && raw.writeErrors.length > 0) {\n return false;\n }\n\n if (!ignoreWriteConcernErrors && raw.hasOwnProperty(\"writeConcernError\")) {\n return false;\n }\n\n return true;\n }\n\n // Returns whether res is a type which may have write errors (not command errors).\n // These types imply that the write command succeeded.\n function _isWriteResultType(res) {\n return res instanceof WriteResult || res instanceof WriteError ||\n res instanceof BulkWriteResult || res instanceof BulkWriteError;\n }\n\n function _validateCommandResponse(res, assertionName) {\n if (typeof res !== \"object\") {\n doassert(\"unknown response type '\" + typeof res + \"' given to \" + assertionName +\n \", res='\" + res + \"'\");\n }\n }\n\n function _runHangAnalyzerIfWriteConcernTimedOut(res) {\n const timeoutMsg = \"waiting for replication timed out\";\n let isWriteConcernTimeout = false;\n if (_isWriteResultType(res)) {\n if (res.hasWriteConcernError() && res.getWriteConcernError().errmsg === timeoutMsg) {\n isWriteConcernTimeout = true;\n }\n } else if ((res.hasOwnProperty(\"errmsg\") && res.errmsg === timeoutMsg) ||\n (res.hasOwnProperty(\"writeConcernError\") &&\n res.writeConcernError.errmsg === timeoutMsg)) {\n isWriteConcernTimeout = true;\n }\n if (isWriteConcernTimeout) {\n print(\"Running hang analyzer for writeConcern timeout \" + tojson(res));\n MongoRunner.runHangAnalyzer();\n return true;\n }\n return false;\n }\n\n function _runHangAnalyzerIfNonTransientLockTimeoutError(res) {\n // Concurrency suites see a lot of LockTimeouts when running concurrent transactions.\n // However, they will also abort transactions and continue running rather than fail the\n // test, so we don't want to run the hang analyzer when the error has a\n // TransientTransactionError error label.\n const isTransientTxnError = res.hasOwnProperty(\"errorLabels\") &&\n res.errorLabels.includes(\"TransientTransactionError\");\n const isLockTimeout = res.hasOwnProperty(\"code\") && ErrorCodes.LockTimeout === res.code;\n if (isLockTimeout && !isTransientTxnError) {\n print(\"Running hang analyzer for lock timeout \" + tojson(res));\n MongoRunner.runHangAnalyzer();\n return true;\n }\n return false;\n }\n\n function _runHangAnalyzerForSpecificFailureTypes(res) {\n // If the hang analyzer is run, then we shouldn't try to run it again.\n if (_runHangAnalyzerIfWriteConcernTimedOut(res)) {\n return;\n }\n\n _runHangAnalyzerIfNonTransientLockTimeoutError(res);\n }\n\n function _assertCommandWorked(res, msg, {ignoreWriteErrors, ignoreWriteConcernErrors}) {\n _validateAssertionMessage(msg);\n _validateCommandResponse(res, \"commandWorked\");\n\n // Keep this as a function so we don't call tojson if not necessary.\n const makeFailMsg = () => {\n let prefix = \"command failed: \" + tojson(res);\n if (typeof res._commandObj === \"object\" && res._commandObj !== null) {\n prefix += \" with original command request: \" + tojson(res._commandObj);\n }\n if (typeof res._mongo === \"object\" && res._mongo !== null) {\n prefix += \" on connection: \" + res._mongo;\n }\n return _buildAssertionMessage(msg, prefix);\n };\n\n if (_isWriteResultType(res)) {\n // These can only contain write errors, not command errors.\n if (!ignoreWriteErrors) {\n assert.writeOK(res, msg, {ignoreWriteConcernErrors: ignoreWriteConcernErrors});\n }\n } else if (res instanceof WriteCommandError || res instanceof Error) {\n // A WriteCommandError implies ok:0.\n // Error objects may have a `code` property added (e.g.\n // DBCollection.prototype.mapReduce) without a `ok` property.\n doassert(makeFailMsg(), res);\n } else if (res.hasOwnProperty(\"ok\")) {\n // Handle raw command responses or cases like MapReduceResult which extend command\n // response.\n if (!_rawReplyOkAndNoWriteErrors(res, {\n ignoreWriteErrors: ignoreWriteErrors,\n ignoreWriteConcernErrors: ignoreWriteConcernErrors\n })) {\n _runHangAnalyzerForSpecificFailureTypes(res);\n doassert(makeFailMsg(), res);\n }\n } else if (res.hasOwnProperty(\"acknowledged\")) {\n // CRUD api functions return plain js objects with an acknowledged property.\n // no-op.\n } else {\n doassert(_buildAssertionMessage(\n msg, \"unknown type of result, cannot check ok: \" + tojson(res)),\n res);\n }\n return res;\n }\n\n assert._kAnyErrorCode = Object.create(null);\n\n function _assertCommandFailed(res, expectedCode, msg) {\n _validateAssertionMessage(msg);\n _validateCommandResponse(res, \"commandFailed\");\n\n if (expectedCode !== assert._kAnyErrorCode && !Array.isArray(expectedCode)) {\n expectedCode = [expectedCode];\n }\n\n // Keep this as a function so we don't call tojson if not necessary.\n const makeFailMsg = () => {\n return _buildAssertionMessage(\n msg, \"command worked when it should have failed: \" + tojson(res));\n };\n\n const makeFailCodeMsg = () => {\n return (expectedCode !== assert._kAnyErrorCode)\n ? _buildAssertionMessage(msg,\n \"command did not fail with any of the following codes \" +\n tojson(expectedCode) + \" \" + tojson(res))\n : \"\";\n };\n\n if (_isWriteResultType(res)) {\n // These can only contain write errors, not command errors.\n assert.writeErrorWithCode(res, expectedCode, msg);\n } else if (res instanceof WriteCommandError || res instanceof Error) {\n // A WriteCommandError implies ok:0.\n // Error objects may have a `code` property added (e.g.\n // DBCollection.prototype.mapReduce) without a `ok` property.\n if (expectedCode !== assert._kAnyErrorCode) {\n if (!res.hasOwnProperty(\"code\") || !expectedCode.includes(res.code)) {\n doassert(makeFailCodeMsg(), res);\n }\n }\n } else if (res.hasOwnProperty(\"ok\")) {\n // Handle raw command responses or cases like MapReduceResult which extend command\n // response.\n if (_rawReplyOkAndNoWriteErrors(res)) {\n doassert(makeFailMsg(), res);\n }\n\n if (expectedCode !== assert._kAnyErrorCode) {\n let foundCode = false;\n if (res.hasOwnProperty(\"code\") && expectedCode.includes(res.code)) {\n foundCode = true;\n } else if (res.hasOwnProperty(\"writeErrors\")) {\n foundCode = res.writeErrors.some((err) => expectedCode.includes(err.code));\n } else if (res.hasOwnProperty(\"writeConcernError\")) {\n foundCode = expectedCode.includes(res.writeConcernError.code);\n }\n\n if (!foundCode) {\n _runHangAnalyzerForSpecificFailureTypes(res);\n doassert(makeFailCodeMsg(), res);\n }\n }\n } else if (res.hasOwnProperty(\"acknowledged\")) {\n // CRUD api functions return plain js objects with an acknowledged property.\n doassert(makeFailMsg());\n } else {\n doassert(_buildAssertionMessage(\n msg, \"unknown type of result, cannot check error: \" + tojson(res)),\n res);\n }\n return res;\n }\n\n assert.commandWorkedOrFailedWithCode = function commandWorkedOrFailedWithCode(\n res, errorCodeSet, msg) {\n if (!res.ok) {\n return assert.commandFailedWithCode(res, errorCodeSet, msg);\n } else {\n return assert.commandWorked(res, msg);\n }\n };\n\n assert.commandWorked = function(res, msg) {\n return _assertCommandWorked(res, msg, {ignoreWriteErrors: false});\n };\n\n assert.commandWorkedIgnoringWriteErrors = function(res, msg) {\n return _assertCommandWorked(res, msg, {ignoreWriteErrors: true});\n };\n\n assert.commandWorkedIgnoringWriteConcernErrors = function(res, msg) {\n return _assertCommandWorked(res, msg, {ignoreWriteConcernErrors: true});\n };\n\n assert.commandWorkedIgnoringWriteErrorsAndWriteConcernErrors = function(res, msg) {\n return _assertCommandWorked(\n res, msg, {ignoreWriteConcernErrors: true, ignoreWriteErrors: true});\n };\n\n assert.commandFailed = function(res, msg) {\n return _assertCommandFailed(res, assert._kAnyErrorCode, msg);\n };\n\n // expectedCode can be an array of possible codes.\n assert.commandFailedWithCode = function(res, expectedCode, msg) {\n return _assertCommandFailed(res, expectedCode, msg);\n };\n\n assert.writeOK = function(res, msg, {ignoreWriteConcernErrors} = {}) {\n var errMsg = null;\n\n if (res instanceof WriteResult) {\n if (res.hasWriteError()) {\n errMsg = \"write failed with error: \" + tojson(res);\n } else if (!ignoreWriteConcernErrors && res.hasWriteConcernError()) {\n errMsg = \"write concern failed with errors: \" + tojson(res);\n }\n } else if (res instanceof BulkWriteResult) {\n // Can only happen with bulk inserts\n if (res.hasWriteErrors()) {\n errMsg = \"write failed with errors: \" + tojson(res);\n } else if (!ignoreWriteConcernErrors && res.hasWriteConcernError()) {\n errMsg = \"write concern failed with errors: \" + tojson(res);\n }\n } else if (res instanceof WriteCommandError || res instanceof WriteError ||\n res instanceof BulkWriteError) {\n errMsg = \"write command failed: \" + tojson(res);\n } else {\n if (!res || !res.ok) {\n errMsg = \"unknown type of write result, cannot check ok: \" + tojson(res);\n }\n }\n\n if (errMsg) {\n _runHangAnalyzerForSpecificFailureTypes(res);\n doassert(_buildAssertionMessage(msg, errMsg), res);\n }\n\n return res;\n };\n\n assert.writeError = function(res, msg) {\n return assert.writeErrorWithCode(res, assert._kAnyErrorCode, msg);\n };\n\n // If expectedCode is an array then this asserts that the found code is one of the codes in\n // the expectedCode array.\n assert.writeErrorWithCode = function(res, expectedCode, msg) {\n if (expectedCode === undefined) {\n doassert(\"assert.writeErrorWithCode called with undefined error code\");\n }\n\n var errMsg = null;\n var writeErrorCodes = new Set();\n\n if (res instanceof WriteResult) {\n if (res.hasWriteError()) {\n writeErrorCodes.add(res.getWriteError().code);\n } else if (res.hasWriteConcernError()) {\n writeErrorCodes.add(res.getWriteConcernError().code);\n } else {\n errMsg = \"no write error: \" + tojson(res);\n }\n } else if (res instanceof BulkWriteResult || res instanceof BulkWriteError) {\n // Can only happen with bulk inserts\n if (res.hasWriteErrors()) {\n // Save every write error code.\n res.getWriteErrors().forEach((we) => writeErrorCodes.add(we.code));\n } else if (res.hasWriteConcernError()) {\n writeErrorCodes.add(res.getWriteConcernError().code);\n } else {\n errMsg = \"no write errors: \" + tojson(res);\n }\n } else if (res instanceof WriteCommandError) {\n // Can only happen with bulk inserts\n // No-op since we're expecting an error\n } else if (res instanceof WriteError) {\n writeErrorCodes.add(res.code);\n } else {\n if (!res || res.ok) {\n errMsg = \"unknown type of write result, cannot check error: \" + tojson(res);\n }\n }\n\n if (!errMsg && expectedCode !== assert._kAnyErrorCode) {\n if (!Array.isArray(expectedCode)) {\n expectedCode = [expectedCode];\n }\n const found = expectedCode.some((ec) => writeErrorCodes.has(ec));\n if (!found) {\n errMsg = \"found code(s) \" + tojson(Array.from(writeErrorCodes)) +\n \" does not match any of the expected codes \" + tojson(expectedCode);\n }\n }\n\n if (errMsg) {\n _runHangAnalyzerForSpecificFailureTypes(res);\n doassert(_buildAssertionMessage(msg, errMsg));\n }\n\n return res;\n };\n\n assert.isnull = function(what, msg) {\n _validateAssertionMessage(msg);\n\n if (what == null) {\n return;\n }\n\n doassert(\"supposed to be null (\" + (_processMsg(msg) || \"\") + \") was: \" + tojson(what));\n };\n\n function _shouldUseBsonWoCompare(a, b) {\n const bsonTypes = [\n Timestamp,\n ];\n\n if (typeof a !== \"object\" || typeof b !== \"object\") {\n return false;\n }\n\n for (let t of bsonTypes) {\n if (a instanceof t && b instanceof t) {\n return true;\n }\n }\n\n return false;\n }\n\n function _compare(f, a, b) {\n if (_shouldUseBsonWoCompare(a, b)) {\n const result = bsonWoCompare({_: a}, {_: b});\n return f(result, 0);\n }\n\n return f(a, b);\n }\n\n function _assertCompare(f, a, b, description, msg) {\n _validateAssertionMessage(msg);\n\n if (_compare(f, a, b)) {\n return;\n }\n\n doassert(_buildAssertionMessage(msg, a + \" is not \" + description + \" \" + b));\n }\n\n assert.lt = function(a, b, msg) {\n _assertCompare((a, b) => {\n return a < b;\n }, a, b, \"less than\", msg);\n };\n\n assert.gt = function(a, b, msg) {\n _assertCompare((a, b) => {\n return a > b;\n }, a, b, \"greater than\", msg);\n };\n\n assert.lte = function(a, b, msg) {\n _assertCompare((a, b) => {\n return a <= b;\n }, a, b, \"less than or eq\", msg);\n };\n\n assert.gte = function(a, b, msg) {\n _assertCompare((a, b) => {\n return a >= b;\n }, a, b, \"greater than or eq\", msg);\n };\n\n assert.between = function(a, b, c, msg, inclusive) {\n _validateAssertionMessage(msg);\n\n let compareFn = (a, b) => {\n return a < b;\n };\n\n if ((inclusive == undefined || inclusive == true)) {\n compareFn = (a, b) => {\n return a <= b;\n };\n }\n\n if (_compare(compareFn, a, b) && _compare(compareFn, b, c)) {\n return;\n }\n\n doassert(_buildAssertionMessage(msg, b + \" is not between \" + a + \" and \" + c));\n };\n\n assert.betweenIn = function(a, b, c, msg) {\n assert.between(a, b, c, msg, true);\n };\n assert.betweenEx = function(a, b, c, msg) {\n assert.between(a, b, c, msg, false);\n };\n\n assert.close = function(a, b, msg, places = 4) {\n // This treats 'places' as digits past the decimal point.\n var absoluteError = Math.abs(a - b);\n if (Math.round(absoluteError * Math.pow(10, places)) === 0) {\n return;\n }\n\n // This treats 'places' as significant figures.\n var relativeError = Math.abs(absoluteError / b);\n if (Math.round(relativeError * Math.pow(10, places)) === 0) {\n return;\n }\n\n const msgPrefix = `${a} is not equal to ${b} within ${places} places, absolute error: ` +\n `${absoluteError}, relative error: ${relativeError}`;\n doassert(_buildAssertionMessage(msg, msgPrefix));\n };\n\n /**\n * Asserts if the times in millis are not withing delta milliseconds, in either direction.\n * Default Delta: 1 second\n */\n assert.closeWithinMS = function(a, b, msg, deltaMS) {\n \"use strict\";\n\n if (deltaMS === undefined) {\n deltaMS = 1000;\n }\n var aMS = a instanceof Date ? a.getTime() : a;\n var bMS = b instanceof Date ? b.getTime() : b;\n var actualDelta = Math.abs(Math.abs(aMS) - Math.abs(bMS));\n\n if (actualDelta <= deltaMS) {\n return;\n }\n\n const msgPrefix = \"\" + a + \" is not equal to \" + b + \" within \" + deltaMS + \" millis, \" +\n \"actual delta: \" + actualDelta + \" millis\";\n doassert(_buildAssertionMessage(msg, msgPrefix));\n };\n\n assert.gleOK = function(res, msg) {\n var errMsg = null;\n\n if (!res) {\n errMsg = \"missing first argument, no response to check\";\n } else if (!res.ok) {\n errMsg = \"getLastError failed: \" + tojson(res);\n } else if ('code' in res || 'errmsg' in res || ('err' in res && res['err'] != null)) {\n errMsg = \"write or write concern failed: \" + tojson(res);\n }\n\n if (errMsg) {\n doassert(_buildAssertionMessage(msg, errMsg), res);\n }\n\n return res;\n };\n\n assert.gleSuccess = function(dbOrGLEDoc, msg) {\n var gle = dbOrGLEDoc instanceof DB ? dbOrGLEDoc.getLastErrorObj() : dbOrGLEDoc;\n if (gle.err) {\n if (typeof (msg) == \"function\")\n msg = msg(gle);\n doassert(_buildAssertionMessage(msg, \"getLastError not null: \" + tojson(gle)), gle);\n }\n return gle;\n };\n\n assert.gleError = function(dbOrGLEDoc, msg) {\n var gle = dbOrGLEDoc instanceof DB ? dbOrGLEDoc.getLastErrorObj() : dbOrGLEDoc;\n if (!gle.err) {\n if (typeof (msg) == \"function\")\n msg = msg(gle);\n doassert(_buildAssertionMessage(msg, \"getLastError is null: \" + tojson(gle)));\n }\n };\n\n assert.gleErrorCode = function(dbOrGLEDoc, code, msg) {\n var gle = dbOrGLEDoc instanceof DB ? dbOrGLEDoc.getLastErrorObj() : dbOrGLEDoc;\n if (!gle.err || gle.code != code) {\n if (typeof (msg) == \"function\")\n msg = msg(gle);\n doassert(_buildAssertionMessage(\n msg,\n \"getLastError is null or has code other than \\\"\" + code + \"\\\": \" + tojson(gle)));\n }\n };\n\n assert.gleErrorRegex = function(dbOrGLEDoc, regex, msg) {\n var gle = dbOrGLEDoc instanceof DB ? dbOrGLEDoc.getLastErrorObj() : dbOrGLEDoc;\n if (!gle.err || !regex.test(gle.err)) {\n if (typeof (msg) == \"function\")\n msg = msg(gle);\n doassert(_buildAssertionMessage(\n msg,\n \"getLastError is null or doesn't match regex (\" + regex + \"): \" + tojson(gle)));\n }\n };\n\n assert.includes = function(haystack, needle, msg) {\n if (!haystack.includes(needle)) {\n var assertMsg = \"string [\" + haystack + \"] does not include [\" + needle + \"]\";\n if (msg) {\n assertMsg += \", \" + msg;\n }\n\n doassert(assertMsg);\n }\n };\n\n return assert;\n})();"}} {"t":{"$date":"2022-01-17T18:20:12.752Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":true,"filename":"/Users/steveh/.mongodb/mongosh/snippets/node_modules/@mongosh/snippet-mongocompat/mongotypes.js"}} {"t":{"$date":"2022-01-17T18:20:13.160Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"// Date and time types\nif (typeof (Timestamp) != \"undefined\") {\n Timestamp.prototype.tojson = function() {\n return this.toStringIncomparable();\n };\n\n Timestamp.prototype.getTime = function() {\n return this.t;\n };\n\n Timestamp.prototype.getInc = function() {\n return this.i;\n };\n\n Timestamp.prototype.toString = function() {\n // Resmoke overrides `toString` to throw an error to prevent accidental operator\n // comparisons, e.g: >, -, etc...\n return this.toStringIncomparable();\n };\n\n Timestamp.prototype.toStringIncomparable = function() {\n return \"Timestamp(\" + this.t + \", \" + this.i + \")\";\n };\n} else {\n print(\"warning: no Timestamp class\");\n}\n\nDate.timeFunc = function(theFunc, numTimes) {\n var start = new Date();\n numTimes = numTimes || 1;\n for (var i = 0; i < numTimes; i++) {\n theFunc.apply(null, Array.from(arguments).slice(2));\n }\n\n return (new Date()).getTime() - start.getTime();\n};\n\nDate.prototype.tojson = function() {\n try {\n // If this === Date.prototype or this is a Date instance created from\n // Object.create(Date.prototype), then the [[DateValue]] internal slot won't be set and will\n // lead to a TypeError. We instead treat it as though the [[DateValue]] internal slot is NaN\n // in order to be consistent with the ES5 behavior in MongoDB 3.2 and earlier.\n this.getTime();\n } catch (e) {\n if (e instanceof TypeError &&\n e.message.includes(\"getTime method called on incompatible Object\")) {\n return new Date(NaN).tojson();\n }\n throw e;\n }\n\n var UTC = 'UTC';\n var year = this['get' + UTC + 'FullYear']().zeroPad(4);\n var month = (this['get' + UTC + 'Month']() + 1).zeroPad(2);\n var date = this['get' + UTC + 'Date']().zeroPad(2);\n var hour = this['get' + UTC + 'Hours']().zeroPad(2);\n var minute = this['get' + UTC + 'Minutes']().zeroPad(2);\n var sec = this['get' + UTC + 'Seconds']().zeroPad(2);\n\n if (this['get' + UTC + 'Milliseconds']())\n sec += '.' + this['get' + UTC + 'Milliseconds']().zeroPad(3);\n\n var ofs = 'Z';\n // // print a non-UTC time\n // var ofsmin = this.getTimezoneOffset();\n // if (ofsmin != 0){\n // ofs = ofsmin > 0 ? '-' : '+'; // This is correct\n // ofs += (ofsmin/60).zeroPad(2)\n // ofs += (ofsmin%60).zeroPad(2)\n // }\n return 'ISODate(\"' + year + '-' + month + '-' + date + 'T' + hour + ':' + minute + ':' + sec +\n ofs + '\")';\n};\n\nISODate = function(isoDateStr) {\n if (!isoDateStr)\n return new Date();\n\n var isoDateRegex =\n /^(\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2}(\\.\\d+)?))?)?(Z|([+-])(\\d{2}):?(\\d{2})?)?)?$/;\n var res = isoDateRegex.exec(isoDateStr);\n\n if (!res)\n throw Error(\"invalid ISO date: \" + isoDateStr);\n\n var year = parseInt(res[1], 10);\n var month = (parseInt(res[2], 10)) - 1;\n var date = parseInt(res[3], 10);\n var hour = parseInt(res[5], 10) || 0;\n var min = parseInt(res[7], 10) || 0;\n var sec = parseInt((res[9] && res[9].substr(0, 2)), 10) || 0;\n var ms = Math.round((parseFloat(res[10]) || 0) * 1000);\n\n var dateTime = new Date();\n\n dateTime.setUTCFullYear(year, month, date);\n dateTime.setUTCHours(hour);\n dateTime.setUTCMinutes(min);\n dateTime.setUTCSeconds(sec);\n var time = dateTime.setUTCMilliseconds(ms);\n\n if (res[11] && res[11] != 'Z') {\n var ofs = 0;\n ofs += (parseInt(res[13], 10) || 0) * 60 * 60 * 1000; // hours\n ofs += (parseInt(res[14], 10) || 0) * 60 * 1000; // mins\n if (res[12] == '+') // if ahead subtract\n ofs *= -1;\n\n time += ofs;\n }\n\n // If we are outside the range 0000-01-01T00:00:00.000Z - 9999-12-31T23:59:59.999Z, abort with\n // error.\n const DATE_RANGE_MIN_MICROSECONDS = -62167219200000;\n const DATE_RANGE_MAX_MICROSECONDS = 253402300799999;\n\n if (time < DATE_RANGE_MIN_MICROSECONDS || time > DATE_RANGE_MAX_MICROSECONDS)\n throw Error(\"invalid ISO date: \" + isoDateStr);\n\n return new Date(time);\n};\n\n// Regular Expression\nRegExp.escape = function(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, \"\\\\$&\");\n};\n\nRegExp.prototype.tojson = RegExp.prototype.toString;\n\n// Array\nArray.contains = function(a, x) {\n if (!Array.isArray(a)) {\n throw new Error(\"The first argument to Array.contains must be an array\");\n }\n\n for (var i = 0; i < a.length; i++) {\n if (a[i] == x)\n return true;\n }\n return false;\n};\n\nArray.unique = function(a) {\n if (!Array.isArray(a)) {\n throw new Error(\"The first argument to Array.unique must be an array\");\n }\n\n var u = [];\n for (var i = 0; i < a.length; i++) {\n var o = a[i];\n if (!Array.contains(u, o)) {\n u.push(o);\n }\n }\n return u;\n};\n\nArray.shuffle = function(arr) {\n if (!Array.isArray(arr)) {\n throw new Error(\"The first argument to Array.shuffle must be an array\");\n }\n\n for (var i = 0; i < arr.length - 1; i++) {\n var pos = i + Random.randInt(arr.length - i);\n var save = arr[i];\n arr[i] = arr[pos];\n arr[pos] = save;\n }\n return arr;\n};\n\nArray.tojson = function(a, indent, nolint, depth) {\n if (!Array.isArray(a)) {\n throw new Error(\"The first argument to Array.tojson must be an array\");\n }\n\n if (typeof depth !== 'number') {\n depth = 0;\n }\n if (depth > tojson.MAX_DEPTH) {\n return \"[Array]\";\n }\n\n var elementSeparator = nolint ? \" \" : \"\\n\";\n\n if (!indent)\n indent = \"\";\n if (nolint)\n indent = \"\";\n\n if (a.length == 0) {\n return \"[ ]\";\n }\n\n var s = \"[\" + elementSeparator;\n\n // add to indent if we are pretty\n if (!nolint)\n indent += \"\\t\";\n\n for (var i = 0; i < a.length; i++) {\n s += indent + tojson(a[i], indent, nolint, depth + 1);\n if (i < a.length - 1) {\n s += \",\" + elementSeparator;\n }\n }\n\n // remove from indent if we are pretty\n if (!nolint)\n indent = indent.substring(1);\n\n s += elementSeparator + indent + \"]\";\n return s;\n};\n\nArray.fetchRefs = function(arr, coll) {\n if (!Array.isArray(arr)) {\n throw new Error(\"The first argument to Array.fetchRefs must be an array\");\n }\n\n var n = [];\n for (var i = 0; i < arr.length; i++) {\n var z = arr[i];\n if (coll && coll != z.getCollection())\n continue;\n n.push(z.fetch());\n }\n return n;\n};\n\nArray.sum = function(arr) {\n if (!Array.isArray(arr)) {\n throw new Error(\"The first argument to Array.sum must be an array\");\n }\n\n if (arr.length == 0)\n return null;\n var s = arr[0];\n for (var i = 1; i < arr.length; i++)\n s += arr[i];\n return s;\n};\n\nArray.avg = function(arr) {\n if (!Array.isArray(arr)) {\n throw new Error(\"The first argument to Array.avg must be an array\");\n }\n\n if (arr.length == 0)\n return null;\n return Array.sum(arr) / arr.length;\n};\n\nArray.stdDev = function(arr) {\n if (!Array.isArray(arr)) {\n throw new Error(\"The first argument to Array.stdDev must be an array\");\n }\n\n var avg = Array.avg(arr);\n var sum = 0;\n\n for (var i = 0; i < arr.length; i++) {\n sum += Math.pow(arr[i] - avg, 2);\n }\n\n return Math.sqrt(sum / arr.length);\n};\n\n// Object\nObject.extend = function(dst, src, deep) {\n for (var k in src) {\n var v = src[k];\n if (deep && typeof (v) == \"object\" && v !== null) {\n if (v.constructor === ObjectId) { // convert ObjectId properly\n eval(\"v = \" + tojson(v));\n } else if (\"floatApprox\" in v) { // convert NumberLong properly\n eval(\"v = \" + tojson(v));\n } else {\n v = Object.extend(typeof (v.length) == \"number\" ? [] : {}, v, true);\n }\n }\n dst[k] = v;\n }\n return dst;\n};\n\nObject.merge = function(dst, src, deep) {\n var clone = Object.extend({}, dst, deep);\n return Object.extend(clone, src, deep);\n};\n\nObject.keySet = function(o) {\n var ret = new Array();\n for (var i in o) {\n if (!(i in o.__proto__ && o[i] === o.__proto__[i])) {\n ret.push(i);\n }\n }\n return ret;\n};\n\n// mongosh-specific addition\nObject.bsonsize = bsonsize;\n\n// String\nif (String.prototype.trim === undefined) {\n String.prototype.trim = function() {\n return this.replace(/^\\s+|\\s+$/g, \"\");\n };\n}\nif (String.prototype.trimLeft === undefined) {\n String.prototype.trimLeft = function() {\n return this.replace(/^\\s+/, \"\");\n };\n}\nif (String.prototype.trimRight === undefined) {\n String.prototype.trimRight = function() {\n return this.replace(/\\s+$/, \"\");\n };\n}\n\n// always provide ltrim and rtrim for backwards compatibility\nString.prototype.ltrim = String.prototype.trimLeft;\nString.prototype.rtrim = String.prototype.trimRight;\n\nString.prototype.startsWith = function(str) {\n return this.indexOf(str) == 0;\n};\n\nString.prototype.endsWith = function(str) {\n return this.indexOf(str, this.length - str.length) !== -1;\n};\n\n// Polyfill taken from\n// \nif (!String.prototype.includes) {\n String.prototype.includes = function() {\n 'use strict';\n return String.prototype.indexOf.apply(this, arguments) !== -1;\n };\n}\n\n// Returns a copy padded with the provided character _chr_ so it becomes (at least) _length_\n// characters long.\n// No truncation is performed if the string is already longer than _length_.\n// @param length minimum length of the returned string\n// @param right if falsy add leading whitespace, otherwise add trailing whitespace\n// @param chr character to be used for padding, defaults to whitespace\n// @return the padded string\nString.prototype.pad = function(length, right, chr) {\n if (typeof chr == 'undefined')\n chr = ' ';\n var str = this;\n for (var i = length - str.length; i > 0; i--) {\n if (right) {\n str = str + chr;\n } else {\n str = chr + str;\n }\n }\n return str;\n};\n\n// Number\nNumber.prototype.toPercentStr = function() {\n return (this * 100).toFixed(2) + \"%\";\n};\n\nNumber.prototype.zeroPad = function(width) {\n return ('' + this).pad(width, false, '0');\n};\n\n// NumberLong\nif (!NumberLong.prototype) {\n NumberLong.prototype = {};\n}\n\nNumberLong.prototype.tojson = function() {\n return this.toString();\n};\n\n// NumberInt\nif (!NumberInt.prototype) {\n NumberInt.prototype = {};\n}\n\nNumberInt.prototype.tojson = function() {\n return this.toString();\n};\n\n// NumberDecimal\nif (typeof NumberDecimal !== 'undefined') {\n if (!NumberDecimal.prototype) {\n NumberDecimal.prototype = {};\n }\n\n NumberDecimal.prototype.tojson = function() {\n return this.toString();\n };\n}\n\n// ObjectId\nif (!ObjectId.prototype)\n ObjectId.prototype = {};\n\nObjectId.prototype.toString = function() {\n return this.inspect();\n};\n\nObjectId.prototype.tojson = function() {\n return this.toString();\n};\n\nObjectId.prototype.valueOf = function() {\n return this.str;\n};\n\nObjectId.prototype.isObjectId = true;\n\nObjectId.prototype.getTimestamp = function() {\n return new Date(parseInt(this.valueOf().slice(0, 8), 16) * 1000);\n};\n\nObjectId.prototype.equals = function(other) {\n return this.str == other.str;\n};\n\n// Creates an ObjectId from a Date.\n// Based on solution discussed here:\n// \nObjectId.fromDate = function(source) {\n if (!source) {\n throw Error(\"date missing or undefined\");\n }\n\n var sourceDate;\n\n // Extract Date from input.\n // If input is a string, assume ISO date string and\n // create a Date from the string.\n if (source instanceof Date) {\n sourceDate = source;\n } else {\n throw Error(\"Cannot create ObjectId from \" + typeof (source) + \": \" + tojson(source));\n }\n\n // Convert date object to seconds since Unix epoch.\n var seconds = Math.floor(sourceDate.getTime() / 1000);\n\n // Generate hex timestamp with padding.\n var hexTimestamp = seconds.toString(16).pad(8, false, '0') + \"0000000000000000\";\n\n // Create an ObjectId with hex timestamp.\n var objectId = ObjectId(hexTimestamp);\n\n return objectId;\n};\n\n// DBPointer\nif (typeof (DBPointer) != \"undefined\") {\n DBPointer.prototype.fetch = function() {\n assert(this.ns, \"need a ns\");\n assert(this.id, \"need an id\");\n return db[this.ns].findOne({_id: this.id});\n };\n\n DBPointer.prototype.tojson = function(indent) {\n return this.toString();\n };\n\n DBPointer.prototype.getCollection = function() {\n return this.ns;\n };\n\n DBPointer.prototype.getId = function() {\n return this.id;\n };\n\n DBPointer.prototype.toString = function() {\n return \"DBPointer(\" + tojson(this.ns) + \", \" + tojson(this.id) + \")\";\n };\n} else {\n // print(\"warning: no DBPointer\");\n}\n\n// DBRef\nif (typeof (DBRef) != \"undefined\") {\n DBRef.prototype.fetch = function() {\n assert(this.$ref, \"need a ns\");\n assert(this.$id, \"need an id\");\n var coll = this.$db ? db.getSiblingDB(this.$db).getCollection(this.$ref) : db[this.$ref];\n return coll.findOne({_id: this.$id});\n };\n\n DBRef.prototype.tojson = function(indent) {\n return this.toString();\n };\n\n DBRef.prototype.getDb = function() {\n return this.$db || undefined;\n };\n\n DBRef.prototype.getCollection = function() {\n return this.$ref;\n };\n\n DBRef.prototype.getRef = function() {\n return this.$ref;\n };\n\n DBRef.prototype.getId = function() {\n return this.$id;\n };\n\n DBRef.prototype.toString = function() {\n return \"DBRef(\" + tojson(this.$ref) + \", \" + tojson(this.$id) +\n (this.$db ? \", \" + tojson(this.$db) : \"\") + \")\";\n };\n} else {\n print(\"warning: no DBRef\");\n}\n\n// BinData\nif (typeof (BinData) != \"undefined\") {\n BinData.prototype.tojson = function() {\n return this.toString();\n };\n\n BinData.prototype.subtype = function() {\n return this.type;\n };\n BinData.prototype.length = function() {\n return this.len;\n };\n} else {\n print(\"warning: no BinData class\");\n}\n\nif (typeof (gc) == \"undefined\") {\n gc = function() {\n print(\"warning: using noop gc()\");\n };\n}\n\n// Free Functions\ntojsononeline = function(x) {\n return tojson(x, \" \", true);\n};\n\ntojson = function(x, indent, nolint, depth) {\n if (x === null)\n return \"null\";\n\n if (x === undefined)\n return \"undefined\";\n\n if (!indent)\n indent = \"\";\n\n if (typeof depth !== 'number') {\n depth = 0;\n }\n\n switch (typeof x) {\n case \"string\":\n return JSON.stringify(x);\n case \"number\":\n case \"boolean\":\n return \"\" + x;\n case \"object\": {\n var s = tojsonObject(x, indent, nolint, depth);\n if ((nolint == null || nolint == true) && s.length < 80 &&\n (indent == null || indent.length == 0)) {\n s = s.replace(/[\\t\\r\\n]+/gm, \" \");\n }\n return s;\n }\n case \"function\":\n if (x === MinKey || x === MaxKey)\n return x.tojson();\n return x.toString();\n default:\n throw Error(\"tojson can't handle type \" + (typeof x));\n }\n};\ntojson.MAX_DEPTH = 100;\n\ntojsonObject = function(x, indent, nolint, depth) {\n if (typeof depth !== 'number') {\n depth = 0;\n }\n var lineEnding = nolint ? \" \" : \"\\n\";\n var tabSpace = nolint ? \"\" : \"\\t\";\n assert.eq((typeof x), \"object\", \"tojsonObject needs object, not [\" + (typeof x) + \"]\");\n\n if (!indent)\n indent = \"\";\n\n if (typeof (x.tojson) == \"function\" && x.tojson != tojson) {\n return x.tojson(indent, nolint, depth);\n }\n\n if (x.constructor && typeof (x.constructor.tojson) == \"function\" &&\n x.constructor.tojson != tojson) {\n return x.constructor.tojson(x, indent, nolint, depth);\n }\n\n if (x instanceof Error) {\n return x.toString();\n }\n\n try {\n x.toString();\n } catch (e) {\n // toString not callable\n return \"[Object]\";\n }\n\n if (depth > tojson.MAX_DEPTH) {\n return \"[Object]\";\n }\n\n var s = \"{\" + lineEnding;\n\n // push one level of indent\n indent += tabSpace;\n\n var keys = x;\n if (typeof (x._simpleKeys) == \"function\")\n keys = x._simpleKeys();\n var fieldStrings = [];\n for (var k in keys) {\n var val = x[k];\n\n // skip internal DB types to avoid issues with interceptors\n if (typeof DB != 'undefined' && val == DB.prototype)\n continue;\n if (typeof DBCollection != 'undefined' && val == DBCollection.prototype)\n continue;\n\n fieldStrings.push(indent + \"\\\"\" + k + \"\\\" : \" + tojson(val, indent, nolint, depth + 1));\n }\n\n if (fieldStrings.length > 0) {\n s += fieldStrings.join(\",\" + lineEnding);\n } else {\n s += indent;\n }\n s += lineEnding;\n\n // pop one level of indent\n indent = indent.substring(1);\n return s + indent + \"}\";\n};\n\nprintjson = function(x) {\n print(tojson(x));\n};\n\nprintjsononeline = function(x) {\n print(tojsononeline(x));\n};\n\nisString = function(x) {\n return typeof (x) == \"string\";\n};\n\nisNumber = function(x) {\n return typeof (x) == \"number\";\n};\n\n// This function returns true even if the argument is an array. See SERVER-14220.\nisObject = function(x) {\n return typeof (x) == \"object\";\n};"}} {"t":{"$date":"2022-01-17T18:20:13.168Z"},"s":"I","c":"MONGOSH","id":1000000014,"ctx":"repl","msg":"Loading .mongoshrc.js"} {"t":{"$date":"2022-01-17T18:20:13.169Z"},"s":"I","c":"MONGOSH","id":1000000012,"ctx":"shell-api","msg":"Loading file via load()","attr":{"nested":false,"filename":"/Users/steveh/.mongoshrc.js"}} {"t":{"$date":"2022-01-17T18:20:13.388Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"// Steve Hand\n// functions for mongosh\n// 2017 - 2021\n\n/**\n * Produce an alphanumeric string, randomly generated\n * @param len\n * @param charSet\n * @return {string}\n */\nfunction randomString(len, charSet) {\n\tcharSet = charSet || 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n\tvar randomString = '';\n\tfor (var i = 0; i < len; i++) {\n\t\tvar randomPoz = Math.floor(Math.random() * charSet.length);\n\t\trandomString += charSet.substring(randomPoz,randomPoz+1);\n\t}\n\treturn randomString;\n}\n\n/** Produce a Random integer\n * \n * @param max, maximum int\n **/\nfunction getRandomInt(max) {\n return Math.floor(Math.random() * Math.floor(max));\n}\n\n/**\n * Right pad the provided string with the specified character\n * @param width\n * @param string\n * @param padLeft,\n * \t\ttrue add spaces on the left, or\n * \t\tfalse add space on the right\n * @return {*}\n */\nfunction pad(width, string, padLeft=true) {\n\tassert(typeof width === \"number\", 'width arg must be number');\n\tassert(typeof string === \"string\", 'string arg must be string');\n\tlet padded = \"\";\n\tif(width >= string.length) {\n\t\tif(padLeft) {\n\t\t\tpadded = string.padStart(width);\n\t\t}\n\t\telse {\n\t\t\tpadded = string.padEnd(width);\n\t\t}\n\t}\n\telse {\n\t\tpadded = string.substring(0, width - 3) + '...';\n\t}\n\treturn padded;\n}\n\n/**\n * @param n number to format\n * @return formatted string\n */\nfunction niceNum(n) {\n\tassert(typeof n === \"number\", 'n arg must be number');\n\treturn n.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n}\n\n/**\n * Return a list of collection names sorted in descending order by storage (on disk/compressed) size\n */\nfunction collStorageSizes() {\n\tsortCollByProperty('storageSize')\n}\n\n/**\n * Return a list of collection names sorted in descending order by data size\n */\nfunction collDataSizes()\n{\n\tsortCollByProperty('size')\n}\n\n/**\n * Return a list of collection names sorted in descending order by document count\n */\nfunction collCounts()\n{\n\tsortCollByProperty('count')\n}\n\n/**\n * Sort the list of collections by a \"stats()\" function property\n * @param prop stats property like 'count', 'size', 'storageSize'\n */\nfunction sortCollByProperty(prop = 'count') {\n\tif(typeof db === 'undefined') {\n\t\tprint('not connected')\n\t\treturn false\n\t}\n\tvar collDict=[];\n\tdb.getCollectionNames().forEach(\n\t\tfunction(cname) {\n\t\t\tvar s = -1;\n\t // account for a collection being an client-side encryption key/collection\n\t if(typeof db[cname] === 'undefined') {\n\t s = 0;\n\t }\n\t else {\n\t\t\t\ttry {\n\t\t\t\t\tvar propValue = db[cname].stats()[prop];\n\t\t\t\t}\n\t\t\t\tcatch(e) {\n\t\t\t\t\t// could get a \"MongoServerError: Namespace samples.companyCEOs is a view, not a collection\"\n\t\t\t\t\t// if a view, not a collection\n\t\t\t\t\t// could get \"Cannot read property 'stats' of undefined\" if a encryption keys collection\n\t\t\t\t\tpropValue = 0;\n\t\t\t\t}\n\t\t\t\tif(typeof propValue === 'object') {\n\t\t\t\t // property is likely MongoDB special type like 'NumberLong(\"1218109648896\")'\n\t\t\t\t s = propValue.toString().match(/\\d+/)[0] // extract numbers from string\n\t\t\t\t}\n\t\t\t\telse if(typeof propValue === 'string')\n\t\t\t\t{\n\t\t\t\t try { // handle case where JavaScript can't this task, like the \"config.version\" collection\n\t\t\t\t s = parseInt(propValue);\n\t\t\t\t if(isNaN(s)) {// collection is likely a view\n\t\t\t\t s = 0;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t catch(e) {\n\t\t\t\t if(e instanceof TypeError) {\n\t\t\t\t s = 0;\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t throw e;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\telse if(typeof propValue === 'number') {\n\t\t\t\t s = propValue;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcollDict.push({key: s, value: cname});\n\t\t\t}\n\t\t)\n\tprint(pad(40, \"DB NAME\", false) + ' ' + pad(15, prop.toUpperCase()));\n\tcollDict.sort(function(a,b) {return a.key - b.key});\n\tfor(var x in collDict)\n\t{\n\t\tprint(pad(40, collDict[x].value, false) + ' ' + pad(15, niceNum(collDict[x].key)));\n\t}\n}\n\n/**\n * Create the \"sd\" command that lists database names with their storage (compressed/on-disk) size\n */\nObject.defineProperty(this, 'sd', {\n\tget: function() {\n\t\tif(typeof db === 'undefined') {\n\t\t\tprint('not connected')\n\t\t}\n\t\telse {\n\t\t\tdbases = db.adminCommand( {listDatabases:1} );\n\t\t\tprint(pad(40, \"DB NAME\", false) + ' ' + pad(15, \"ON DSK SZ\"));\n\t\t\tfor(i=0; i (a.stateStr > b.stateStr) ? 1 : ((b.stateStr > a.stateStr) ? -1 : 0));\n\tvar primaryOpDate = null;\n\tfor(var i = 0; i < rsStat.length; i++)\n\t{\n\t\tif(\"PRIMARY\" === rsStat[i].stateStr)\n\t\t{\n\t\t\tprimaryOpDate = rsStat[i].optimeDate;\n\t\t}\n\t\telse if (\"ARBITER\" === rsStat[i].stateStr) {\n\t\t\tdelete rsStat[i].optimeDate;\n\t\t}\n\t\telse if((\"SECONDARY\" === rsStat[i].stateStr || \"RECOVERING\" === rsStat[i].stateStr || \"STARTUP2\" === rsStat[i].stateStr) && null != primaryOpDate) {\n\t\t\tvar behindMS = primaryOpDate - rsStat[i].optimeDate\n\t\t\tif(0 != behindMS) {\n\t\t\t\trsStat[i].secondsBehindPrimary = (behindMS) / 1000\n\t\t\t}\n\t\t\telse {\n\t\t\t\trsStat[i].secondsBehindPrimary = 0;\n\t\t\t}\n\t\t};\n\t};\n\tprintjson(rsStat);\n}\n\n// set the prompt\nfunction buildPrompt() {\n\tif(typeof db === 'undefined') {\n\t\thost = 'localhost'\n\t\tdbase = 'none'\n\t}\n\telse\n\t{\n\t\thost = db.serverStatus().host;\n\t\tdbase = db._name;\n\t\t// get usename\n\t\tvar username = \"anon\";\n var user = db.runCommand({connectionStatus : 1}).authInfo.authenticatedUsers[0];\n var current_db = db.getName();\n\n if (!!user) {\n username = user.user;\n }\n\t}\n\treturn username+\"@\" + host + \":\"+ dbase + \"$ \";\n}\nprompt = function() {\n\treturn buildPrompt();\n}\n\n/**\n * Create the \"rss\" command that lists replicaset name, host names, and ports\n */\nObject.defineProperty(this, 'rss', {\n\tget: function() {\n\t\t\trsStat()\n\t\t},\n\tenumerable: true,\n\tconfigurable: true\n\t});\n\n/**\n * Estimate the average document size for a given search filter\n * Ideally, the filter should be leftmost fields of an index\n * @param myCollection; e.g. \tdb.mycollection\n * @param myFilter; e.g. \t\t\t{} or { field: { $gte: value }}\n * @param sampleSize; e.g. \t\t100000\n */\n function estimatedDocSize(myCollection, myFilter, sampleSize=1000) {\n var docSize = 0;\n // \"_mongo\" is a key in a collection object\n if(myCollection === null || typeof myCollection !== 'object' || !(\"_mongo\" in myCollection) ) {\n throw TypeError;\n }\n\n if(myFilter === null || typeof myFilter !== 'object') {\n throw TypeError;\n }\n\n var totalDocSize = 0;\n // NOTE: in MDB v4.4 we can use the $bsonSize operator and calculate the average\n // entirely on the server\n myCollection.aggregate([\n {\n $match: myFilter\n },\n {\n $sample: { size: sampleSize }\n }\n ], { \"allowDiskUse\": true }).forEach(function(d){\n totalDocSize += Object.bsonsize(d);\n });\n // return average doc size\n return totalDocSize/sampleSize\n}\n\n/**\n * Find all the databases a given collection is found and the doc count in those collections\n * @param collName name of the collection to find\n */\nfunction findCollection(collName) {\n\tassert(typeof collName === \"string\", 'collName arg must be string');\n\n\tif(typeof db === 'undefined') {\n\t\tprint('not connected')\n\t\treturn false\n\t}\n\tif(typeof collName === 'undefined') {\n\t\tprint('pass collection name')\n\t\treturn false\n\t}\n\tlet collDict=[];\n\n\tlet dbName = \"\";\n\tlet dbases = db.adminCommand( {listDatabases:1} );\n\tfor(i=0; i {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:13.420Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"myFirstDatabase","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:13.420Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"myFirstDatabase","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:13.569Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"myFirstDatabase","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:20:13.638Z"},"s":"I","c":"MONGOSH","id":1000000002,"ctx":"repl","msg":"Started REPL","attr":{"version":"1.1.6"}} {"t":{"$date":"2022-01-17T18:20:13.658Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:13.659Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"myFirstDatabase","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:13.660Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"myFirstDatabase","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:13.734Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"myFirstDatabase","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:20:14.848Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"sd"}} {"t":{"$date":"2022-01-17T18:20:14.851Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"adminCommand","class":"Database","db":"myFirstDatabase","arguments":{"cmd":{"listDatabases":1}}}} {"t":{"$date":"2022-01-17T18:20:14.852Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"myFirstDatabase","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:14.954Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:14.956Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"myFirstDatabase","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:14.956Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"myFirstDatabase","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:15.101Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"myFirstDatabase","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:20:25.615Z"},"s":"I","c":"MONGOSH","id":1000000008,"ctx":"shell-api","msg":"Used \"use\" command","attr":{"db":"tch-search-cmd"}} {"t":{"$date":"2022-01-17T18:20:25.638Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:25.639Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:25.640Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:26.282Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:20:26.718Z"},"s":"I","c":"MONGOSH","id":1000000004,"ctx":"connect","msg":"Connecting to server","attr":{"session_id":"61e5b358025954908da142fb","userId":"60410796ba2126da0321bf6e","connectionUri":"mongodb+srv://tcx-hub-tch-95tg2.qurxw.mongodb.net/myFirstDatabase","is_atlas":true,"is_localhost":false,"is_do":false,"server_version":"4.2.18","node_version":"v14.18.2","mongosh_version":"1.1.6","server_os":"linux","server_arch":"x86_64","is_enterprise":true,"auth_type":"DEFAULT","is_data_lake":false,"dl_version":null,"atlas_version":null,"is_genuine":true,"non_genuine_server_name":"mongodb","fcv":"4.2","api_version":null,"api_strict":null,"api_deprecation_errors":null}} {"t":{"$date":"2022-01-17T18:20:27.621Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"sc"}} {"t":{"$date":"2022-01-17T18:20:27.624Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getCollectionNames","class":"Database","db":"tch-search-cmd","arguments":{}}} {"t":{"$date":"2022-01-17T18:20:27.695Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:20:27.908Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:20:28.004Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:28.006Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:28.006Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:28.083Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:20:33.870Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-sequences'].find().limit(3)"}} {"t":{"$date":"2022-01-17T18:20:33.873Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"find","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:33.978Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:20:33.979Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:20:33.980Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:20:34.124Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:21:10.578Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-sequences'].aggregate([{$sample:5}])"}} {"t":{"$date":"2022-01-17T18:21:10.582Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{},"pipeline":[{"$sample":5}]}}} {"t":{"$date":"2022-01-17T18:21:10.788Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:21:10.790Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:21:10.791Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:21:10.964Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:21:11.049Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: the $sample stage specification must be an object","attr":{"operationTime":{"$timestamp":{"t":1642443660,"i":2}},"ok":0,"code":28745,"codeName":"Location28745","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642443660,"i":2}},"signature":{"hash":{"$binary":{"base64":"PoAskDQyLlDQmRvN9U6ZuZSp5ec=","subType":"00"}},"keyId":7021244005279072000}},"message":"the $sample stage specification must be an object","name":"MongoServerError","stack":"MongoServerError: the $sample stage specification must be an object\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:21:40.468Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-sequences'].aggregate([{$sample:{$size:5}}])"}} {"t":{"$date":"2022-01-17T18:21:40.471Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{},"pipeline":[{"$sample":{"$size":5}}]}}} {"t":{"$date":"2022-01-17T18:21:40.581Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:21:40.582Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:21:40.584Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:21:40.729Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:21:40.802Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: unrecognized option to $sample: $size","attr":{"operationTime":{"$timestamp":{"t":1642443690,"i":2}},"ok":0,"code":28748,"codeName":"Location28748","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642443690,"i":2}},"signature":{"hash":{"$binary":{"base64":"L9nfX6/4W2Dg9fvNvx4y5H7RAbQ=","subType":"00"}},"keyId":7021244005279072000}},"message":"unrecognized option to $sample: $size","name":"MongoServerError","stack":"MongoServerError: unrecognized option to $sample: $size\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:21:47.961Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-sequences'].aggregate([{$sample:{size:5}}])"}} {"t":{"$date":"2022-01-17T18:21:47.963Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{},"pipeline":[{"$sample":{"size":5}}]}}} {"t":{"$date":"2022-01-17T18:21:48.207Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:21:48.211Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:21:48.212Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:21:48.368Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:21:50.178Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-sequences'].aggregate([{$sample:{size:5}}])"}} {"t":{"$date":"2022-01-17T18:21:50.180Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{},"pipeline":[{"$sample":{"size":5}}]}}} {"t":{"$date":"2022-01-17T18:21:50.293Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:21:50.295Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:21:50.295Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:21:50.447Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:22:04.834Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"sc"}} {"t":{"$date":"2022-01-17T18:22:04.837Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getCollectionNames","class":"Database","db":"tch-search-cmd","arguments":{}}} {"t":{"$date":"2022-01-17T18:22:04.907Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:22:05.121Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:22:05.228Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:22:05.229Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:22:05.230Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:22:05.309Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:22:11.518Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:5}}])"}} {"t":{"$date":"2022-01-17T18:22:11.520Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":5}}]}}} {"t":{"$date":"2022-01-17T18:22:11.818Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:22:11.820Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:22:11.821Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:22:11.900Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:22:42.743Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].getIndexes()"}} {"t":{"$date":"2022-01-17T18:22:42.746Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getIndexes","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{}}} {"t":{"$date":"2022-01-17T18:22:42.841Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:22:42.843Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:22:42.843Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:22:42.988Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:23:06.265Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:1}}])"}} {"t":{"$date":"2022-01-17T18:23:06.269Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":1}}]}}} {"t":{"$date":"2022-01-17T18:23:06.417Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:23:06.420Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:23:06.421Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:23:06.582Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:23:08.284Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:1}}])"}} {"t":{"$date":"2022-01-17T18:23:08.287Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":1}}]}}} {"t":{"$date":"2022-01-17T18:23:08.439Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:23:08.441Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:23:08.442Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:23:08.598Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:23:11.383Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:1}}])"}} {"t":{"$date":"2022-01-17T18:23:11.385Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":1}}]}}} {"t":{"$date":"2022-01-17T18:23:11.523Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:23:11.525Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:23:11.526Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:23:11.673Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:23:16.500Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:1}}])"}} {"t":{"$date":"2022-01-17T18:23:16.502Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":1}}]}}} {"t":{"$date":"2022-01-17T18:23:16.638Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:23:16.640Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:23:16.641Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:23:16.794Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:23:17.847Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([{$sample:{size:1}}])"}} {"t":{"$date":"2022-01-17T18:23:17.849Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$sample":{"size":1}}]}}} {"t":{"$date":"2022-01-17T18:23:18.130Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:23:18.131Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:23:18.131Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:23:18.212Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:30:40.456Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].getIndexes()"}} {"t":{"$date":"2022-01-17T18:30:40.458Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getIndexes","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{}}} {"t":{"$date":"2022-01-17T18:30:40.552Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:30:40.553Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:30:40.554Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:30:40.699Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:31:04.851Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].getIndexes()"}} {"t":{"$date":"2022-01-17T18:31:04.853Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getIndexes","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{}}} {"t":{"$date":"2022-01-17T18:31:04.947Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:31:04.951Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:31:04.952Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:31:05.111Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:31:23.699Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"collCounts()"}} {"t":{"$date":"2022-01-17T18:31:23.701Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getCollectionNames","class":"Database","db":"tch-search-cmd","arguments":{}}} {"t":{"$date":"2022-01-17T18:31:23.772Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:31:23.989Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"stats","class":"Collection","db":"tch-search-cmd","coll":"aggregate-sequences","arguments":{"options":{"scale":1,"indexDetails":false}}}} {"t":{"$date":"2022-01-17T18:31:24.104Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:31:24.106Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:31:24.106Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:31:24.187Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:32:19.581Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].getIndexes()"}} {"t":{"$date":"2022-01-17T18:32:19.583Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getIndexes","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{}}} {"t":{"$date":"2022-01-17T18:32:19.673Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:32:19.674Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:32:19.675Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:32:19.820Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:14.829Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:14.831Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:14.832Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:14.987Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:16.037Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:16.039Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:16.040Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:16.183Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:16.280Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:16.283Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:16.284Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:16.361Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:16.454Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:16.455Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:16.456Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:16.542Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:16.640Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:16.643Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:16.644Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:16.729Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:16.832Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:16.833Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:16.835Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:16.912Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.005Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.006Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.007Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.088Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.180Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.182Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.183Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.265Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.382Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.384Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.384Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.462Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.554Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.556Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.557Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.633Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.727Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.728Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.729Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.806Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:17.897Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:17.898Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:17.899Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:17.979Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:18.073Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:18.074Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:18.075Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:18.168Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:33:20.363Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate(\n[\n {\n $search: {\n index: 'default',\n text: {\n query: 'linux',\n path: {\n 'wildcard': '*'\n }\n }\n }\n }\n])"}} {"t":{"$date":"2022-01-17T18:33:20.365Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"linux","path":{"wildcard":"*"}}}}]}}} {"t":{"$date":"2022-01-17T18:33:20.682Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:33:20.683Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:33:20.685Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:33:20.761Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:36:42.197Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].getIndexes()"}} {"t":{"$date":"2022-01-17T18:36:42.199Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getIndexes","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{}}} {"t":{"$date":"2022-01-17T18:36:42.282Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:36:42.284Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:36:42.284Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:36:42.428Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:37:24.026Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate( [ { $search: { index: 'default', text: { query: 'kafka', path: { 'wildcard': '*' } } } }])"}} {"t":{"$date":"2022-01-17T18:37:24.028Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"kafka","path":{"wildcard":"*"}}}}]}}} {"t":{"$date":"2022-01-17T18:37:25.082Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:37:25.083Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:37:25.083Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:37:25.163Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:37:40.322Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:37:40.323Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:37:40.327Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:37:40.476Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:41:03.630Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate( [ { $search: { index: 'default', text: { query: 'kafka', path: { 'wildcard': '*' } } }, \"highlight\": { \"path\": {'wildcard': '*'} } }])"}} {"t":{"$date":"2022-01-17T18:41:03.633Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"kafka","path":{"wildcard":"*"}}},"highlight":{"path":{"wildcard":"*"}}}]}}} {"t":{"$date":"2022-01-17T18:41:03.775Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:41:03.776Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:41:03.777Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:41:03.924Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:41:03.997Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: A pipeline stage specification object must contain exactly one field.","attr":{"operationTime":{"$timestamp":{"t":1642444860,"i":3}},"ok":0,"code":40323,"codeName":"Location40323","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642444860,"i":3}},"signature":{"hash":{"$binary":{"base64":"BX0d7F5k3xn1hDGmAmJfnCr5oE0=","subType":"00"}},"keyId":7021244005279072000}},"message":"A pipeline stage specification object must contain exactly one field.","name":"MongoServerError","stack":"MongoServerError: A pipeline stage specification object must contain exactly one field.\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:41:27.827Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate( [ { $search: { index: 'default', text: { query: 'kafka', path: { 'wildcard': '*' } } }, \"highlight\": { \"path\": 'aggregate.content' } }])"}} {"t":{"$date":"2022-01-17T18:41:27.830Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"kafka","path":{"wildcard":"*"}}},"highlight":{"path":"aggregate.content"}}]}}} {"t":{"$date":"2022-01-17T18:41:27.919Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:41:27.921Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:41:27.921Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:41:28.071Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:41:28.145Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: A pipeline stage specification object must contain exactly one field.","attr":{"operationTime":{"$timestamp":{"t":1642444887,"i":5}},"ok":0,"code":40323,"codeName":"Location40323","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642444887,"i":5}},"signature":{"hash":{"$binary":{"base64":"ygjyECRfEU085lnf412xMnFn61c=","subType":"00"}},"keyId":7021244005279072000}},"message":"A pipeline stage specification object must contain exactly one field.","name":"MongoServerError","stack":"MongoServerError: A pipeline stage specification object must contain exactly one field.\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:42:17.721Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate( [ { $search: { index: 'default', text: { query: 'kafka', path: { 'wildcard': '*' } } }, \"highlight\": { \"path\": \"aggregate.content\" } }])"}} {"t":{"$date":"2022-01-17T18:42:17.725Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"kafka","path":{"wildcard":"*"}}},"highlight":{"path":"aggregate.content"}}]}}} {"t":{"$date":"2022-01-17T18:42:17.815Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:42:17.816Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:42:17.817Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:42:17.982Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:42:18.061Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: A pipeline stage specification object must contain exactly one field.","attr":{"operationTime":{"$timestamp":{"t":1642444935,"i":1}},"ok":0,"code":40323,"codeName":"Location40323","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642444935,"i":1}},"signature":{"hash":{"$binary":{"base64":"+y0DNWtliSWKaHFaQz6ik6YECA4=","subType":"00"}},"keyId":7021244005279072000}},"message":"A pipeline stage specification object must contain exactly one field.","name":"MongoServerError","stack":"MongoServerError: A pipeline stage specification object must contain exactly one field.\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:44:50.981Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate( [ { $search: { index: 'default', text: { query: 'kafka', path: { 'wildcard': '*' } } }, \"highlight\": { \"path\": \"aggregate\" } }])"}} {"t":{"$date":"2022-01-17T18:44:50.983Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"index":"default","text":{"query":"kafka","path":{"wildcard":"*"}}},"highlight":{"path":"aggregate"}}]}}} {"t":{"$date":"2022-01-17T18:44:51.079Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:44:51.081Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:44:51.082Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:44:51.226Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:44:51.297Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"MongoServerError: A pipeline stage specification object must contain exactly one field.","attr":{"operationTime":{"$timestamp":{"t":1642445085,"i":2}},"ok":0,"code":40323,"codeName":"Location40323","$clusterTime":{"clusterTime":{"$timestamp":{"t":1642445085,"i":2}},"signature":{"hash":{"$binary":{"base64":"4WN5m6dQQs7oajE+Esrq3K7HQlI=","subType":"00"}},"keyId":7021244005279072000}},"message":"A pipeline stage specification object must contain exactly one field.","name":"MongoServerError","stack":"MongoServerError: A pipeline stage specification object must contain exactly one field.\n at MessageStream.messageHandler (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/connection.js:467:30)\n at MessageStream.emit (events.js:400:28)\n at MessageStream.emit (domain.js:475:12)\n at processIncomingData (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:108:16)\n at MessageStream._write (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/mongodb/lib/cmap/message_stream.js:28:9)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at TLSSocket.ondata (internal/streams/readable.js:731:22)\n at TLSSocket.emit (events.js:400:28)\n at TLSSocket.emit (domain.js:475:12)"}} {"t":{"$date":"2022-01-17T18:45:20.233Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:20.235Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:20.237Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:20.380Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:20.473Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:20.476Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:20.477Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:20.561Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:20.649Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:20.650Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:20.651Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:20.727Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:20.822Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:20.823Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:20.824Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:20.902Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:20.994Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:20.995Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:20.997Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.075Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:21.164Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:21.165Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:21.166Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.243Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:21.331Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:21.333Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:21.333Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.412Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:21.504Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:21.506Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:21.506Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.583Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:21.682Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:21.684Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:21.684Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.768Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:21.857Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:21.858Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:21.859Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:21.941Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.031Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.033Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.034Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:22.115Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.215Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.216Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.216Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:22.297Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.385Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.386Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.386Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:22.469Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.557Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.559Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.560Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:22.654Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.777Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.778Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.783Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:22.868Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:22.953Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:22.954Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:22.955Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:23.031Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:23.124Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:23.125Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:23.126Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:23.205Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:23.290Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:23.291Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:23.291Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:23.370Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:23.454Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:23.455Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:23.459Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:23.542Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:45:24.574Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db.fruit.aggregate([\n {\n $search: {\n \"text\": {\n \"path\": \"description\",\n \"query\": [\"variety\", \"bunch\"]\n },\n \"highlight\": {\n \"path\": \"description\"\n }\n }\n },\n {\n $project: {\n \"description\": 1,\n \"_id\": 0,\n \"highlights\": { \"$meta\": \"searchHighlights\" }\n }\n }\n])"}} {"t":{"$date":"2022-01-17T18:45:24.576Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"fruit","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"description","query":["variety","bunch"]},"highlight":{"path":"description"}}},{"$project":{"description":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}}]}}} {"t":{"$date":"2022-01-17T18:45:24.702Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:45:24.704Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:45:24.707Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:45:24.861Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:46:38.837Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggreget.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }])"}} {"t":{"$date":"2022-01-17T18:46:38.840Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggreget.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}}]}}} {"t":{"$date":"2022-01-17T18:46:38.965Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:46:38.967Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:46:38.968Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:46:39.117Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:46:59.876Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggreget.content\", \"query\": \"kafka\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }])"}} {"t":{"$date":"2022-01-17T18:46:59.878Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggreget.content","query":"kafka"},"highlight":{"path":"aggregate.content"}}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}}]}}} {"t":{"$date":"2022-01-17T18:46:59.984Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:46:59.985Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:46:59.987Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:47:00.140Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:47:16.083Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }])"}} {"t":{"$date":"2022-01-17T18:47:16.085Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}}]}}} {"t":{"$date":"2022-01-17T18:47:17.686Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:47:17.687Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:47:17.688Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:47:17.765Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:48:00.828Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:-1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }])"}} {"t":{"$date":"2022-01-17T18:48:00.830Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":-1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}}]}}} {"t":{"$date":"2022-01-17T18:48:02.611Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:48:02.613Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:48:02.616Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:48:02.694Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:48:17.420Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:-1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T18:48:17.423Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":-1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T18:48:17.645Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:48:17.646Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:48:17.647Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:48:17.787Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:48:26.148Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:48:26.151Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:48:26.152Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:48:26.299Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:48:27.732Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:-1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T18:48:27.735Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":-1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T18:48:27.983Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:48:27.984Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:48:27.984Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:48:28.137Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:49:16.286Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T18:49:16.289Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T18:49:16.510Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:49:16.511Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:49:16.512Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:49:16.661Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:54:27.340Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": \"linux AND kafka\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:-1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T18:54:27.343Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":"linux AND kafka"},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":-1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T18:54:28.150Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:54:28.151Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:54:28.152Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:54:28.306Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T18:54:57.929Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": [\"linux\", \"kafka\"] }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T18:54:57.931Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":["linux","kafka"]},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T18:54:58.175Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T18:54:58.177Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T18:54:58.178Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T18:54:58.341Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T19:07:35.516Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": \"harbor\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T19:07:35.519Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":"harbor"},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T19:07:35.635Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T19:07:35.636Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T19:07:35.637Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T19:07:35.789Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:06:02.952Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": \"harbor\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T21:06:02.960Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":"harbor"},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T21:06:03.366Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:06:03.367Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:06:03.368Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:06:03.521Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:10:57.942Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":""}} {"t":{"$date":"2022-01-17T21:10:57.966Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:10:57.966Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:10:57.967Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:10:58.114Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:06.847Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:11:06.849Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:11:06.849Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:11:06.997Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:07.074Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"Error: Command failed with an error: please define an external editor","attr":{"message":"Command failed with an error: please define an external editor","name":"Error","stack":"Error: Command failed with an error: please define an external editor\n at Editor.runEditCommand (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/editor/lib/editor.js:152:19)\n at async ShellEvaluator.customEval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js:52:34)\n at async MongoshNodeRepl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/mongosh-repl.js:305:30)\n at async PrettyREPLServer.repl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/async-repl.js:51:26)"}} {"t":{"$date":"2022-01-17T21:11:32.659Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"config.set( \"editor\", \"vi\" )"}} {"t":{"$date":"2022-01-17T21:11:32.682Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:11:32.683Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:11:32.684Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:11:32.834Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:35.708Z"},"s":"E","c":"MONGOSH-EDITOR","id":1000000042,"ctx":"editor","msg":"Open external editor","attr":{"tmpDoc":"/Users//.mongodb/mongosh/editor/edit-ObjectId(\"61e5db87025954908da142fc\").js","editor":"vi","code":""}} {"t":{"$date":"2022-01-17T21:11:35.754Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:11:35.757Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:11:35.757Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:11:35.911Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:35.985Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"Error: Command 'vi edit-ObjectId(\"61e5db87025954908da142fc\").js' failed with an exit code 2","attr":{"message":"Command 'vi edit-ObjectId(\"61e5db87025954908da142fc\").js' failed with an exit code 2","name":"Error","stack":"Error: Command 'vi edit-ObjectId(\"61e5db87025954908da142fc\").js' failed with an exit code 2\n at Editor.runEditCommand (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/editor/lib/editor.js:177:19)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async ShellEvaluator.customEval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js:52:34)\n at async MongoshNodeRepl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/mongosh-repl.js:305:30)\n at async PrettyREPLServer.repl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/async-repl.js:51:26)"}} {"t":{"$date":"2022-01-17T21:11:43.344Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": \"harbor\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}])"}} {"t":{"$date":"2022-01-17T21:11:43.346Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":"harbor"},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T21:11:43.457Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:11:43.459Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:11:43.459Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:11:43.606Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:45.881Z"},"s":"E","c":"MONGOSH-EDITOR","id":1000000042,"ctx":"editor","msg":"Open external editor","attr":{"tmpDoc":"/Users//.mongodb/mongosh/editor/edit-ObjectId(\"61e5db91025954908da142fd\").js","editor":"vi","code":""}} {"t":{"$date":"2022-01-17T21:11:45.912Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:11:45.914Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:11:45.915Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:11:46.058Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:11:46.131Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"Error: Command 'vi edit-ObjectId(\"61e5db91025954908da142fd\").js' failed with an exit code 2","attr":{"message":"Command 'vi edit-ObjectId(\"61e5db91025954908da142fd\").js' failed with an exit code 2","name":"Error","stack":"Error: Command 'vi edit-ObjectId(\"61e5db91025954908da142fd\").js' failed with an exit code 2\n at Editor.runEditCommand (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/editor/lib/editor.js:177:19)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async ShellEvaluator.customEval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js:52:34)\n at async MongoshNodeRepl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/mongosh-repl.js:305:30)\n at async PrettyREPLServer.repl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/async-repl.js:51:26)"}} {"t":{"$date":"2022-01-17T21:15:26.911Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"version()"}} {"t":{"$date":"2022-01-17T21:15:26.938Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:15:26.939Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:15:26.939Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:15:27.082Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:18:58.137Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"config.set( \"editor\", \"vim\" )"}} {"t":{"$date":"2022-01-17T21:18:58.158Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:18:58.159Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:18:58.160Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:18:58.304Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:19:00.862Z"},"s":"E","c":"MONGOSH-EDITOR","id":1000000042,"ctx":"editor","msg":"Open external editor","attr":{"tmpDoc":"/Users//.mongodb/mongosh/editor/edit-ObjectId(\"61e5dd44025954908da142fe\").js","editor":"vim","code":""}} {"t":{"$date":"2022-01-17T21:19:00.928Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:19:00.931Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:19:00.933Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:19:01.081Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:19:01.151Z"},"s":"E","c":"MONGOSH","id":1000000006,"ctx":"repl","msg":"Error: Command 'vim edit-ObjectId(\"61e5dd44025954908da142fe\").js' failed with an exit code 2","attr":{"message":"Command 'vim edit-ObjectId(\"61e5dd44025954908da142fe\").js' failed with an exit code 2","name":"Error","stack":"Error: Command 'vim edit-ObjectId(\"61e5dd44025954908da142fe\").js' failed with an exit code 2\n at Editor.runEditCommand (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/editor/lib/editor.js:177:19)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async ShellEvaluator.customEval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/node_modules/@mongosh/shell-evaluator/lib/shell-evaluator.js:52:34)\n at async MongoshNodeRepl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/mongosh-repl.js:305:30)\n at async PrettyREPLServer.repl.eval (/usr/local/Cellar/mongosh/1.1.6/libexec/lib/node_modules/@mongosh/cli-repl/lib/async-repl.js:51:26)"}} {"t":{"$date":"2022-01-17T21:21:40.165Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"ls()"}} {"t":{"$date":"2022-01-17T21:21:40.210Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:21:40.211Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:21:40.211Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:21:40.354Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:24:46.629Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"db.hello()"}} {"t":{"$date":"2022-01-17T21:24:46.632Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"hello","class":"Database","db":"tch-search-cmd","arguments":{}}} {"t":{"$date":"2022-01-17T21:24:46.722Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:24:46.723Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:24:46.724Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:24:46.868Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T21:26:06.573Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"var before = new Date(); db['aggregate-snapshots'].aggregate([ { $search: { \"text\": { \"path\": \"aggregate.content\", \"query\": \"harbor\" }, \"highlight\": { \"path\": \"aggregate.content\" } } }, { $sort: {score:1}}, { $project: { \"aggregate.content\": 1, \"_id\": 0, \"highlights\": { \"$meta\": \"searchHighlights\" } } }, {$limit:2}]); var after = new Date(); execution_mills = after - before"}} {"t":{"$date":"2022-01-17T21:26:06.575Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"aggregate","class":"Collection","db":"tch-search-cmd","coll":"aggregate-snapshots","arguments":{"options":{},"pipeline":[{"$search":{"text":{"path":"aggregate.content","query":"harbor"},"highlight":{"path":"aggregate.content"}}},{"$sort":{"score":1}},{"$project":{"aggregate.content":1,"_id":0,"highlights":{"$meta":"searchHighlights"}}},{"$limit":2}]}}} {"t":{"$date":"2022-01-17T21:26:06.595Z"},"s":"I","c":"MONGOSH","id":1000000007,"ctx":"repl","msg":"Evaluating input","attr":{"input":"(() => {\n switch (typeof prompt) {\n case 'function':\n return prompt();\n case 'string':\n return prompt;\n }\n })()"}} {"t":{"$date":"2022-01-17T21:26:06.595Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"serverStatus","class":"Database","db":"tch-search-cmd","arguments":{"options":{}}}} {"t":{"$date":"2022-01-17T21:26:06.596Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"getSiblingDB","class":"Database","db":"tch-search-cmd","arguments":{"db":"admin"}}} {"t":{"$date":"2022-01-17T21:26:06.743Z"},"s":"I","c":"MONGOSH","id":1000000011,"ctx":"shell-api","msg":"Performed API call","attr":{"method":"runCommand","class":"Database","db":"tch-search-cmd","arguments":{"cmd":{"connectionStatus":1}}}} {"t":{"$date":"2022-01-17T22:08:49.739Z"},"s":"I","c":"MONGOSH","id":1000000045,"ctx":"analytics","msg":"Flushed outstanding data","attr":{"flushError":null,"flushDuration":2}}