Skip to content

Instantly share code, notes, and snippets.

@look4regev
Last active May 26, 2022 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save look4regev/dd5b063bf367bd5c4d592b2ec8cd1a3d to your computer and use it in GitHub Desktop.
Save look4regev/dd5b063bf367bd5c4d592b2ec8cd1a3d to your computer and use it in GitHub Desktop.
mongodb group by count on connections by source ip
lsof -i -u mongod | grep "ESTABLISHED" | awk {'print $9 '} | cut -d":" -f 2| sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment