Created
November 16, 2022 14:49
-
-
Save ephrin/1ff4c8c72dc69aa42ede07457668d581 to your computer and use it in GitHub Desktop.
MongoDB Replication Log from mongosh CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.adminCommand( { getLog:'global'} ).log.forEach(x => { var l = JSON.parse(x); if(l.c === "REPL") {console.log(l)}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment