Last active
July 19, 2018 16:51
-
-
Save cdimascio/3f56b143401a4f9d7d3c60fcc5d19a87 to your computer and use it in GitHub Desktop.
Count and sort connections to MongoDB aggregated by IP address
This file contains hidden or 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
# Replace mongodb.log with your mongodb log | |
cat mongodb.log | grep "syslog" | cut -d " " -f 6 | sort | uniq -c | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment