Skip to content

Instantly share code, notes, and snippets.

@gkhays
Created June 17, 2014 15:14
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 gkhays/2b1dc2ee5a265844c383 to your computer and use it in GitHub Desktop.
Save gkhays/2b1dc2ee5a265844c383 to your computer and use it in GitHub Desktop.
Minecraft Server Log One-Liners
Create a list of users based on logins
grep "logged in with entity id" server.log | cut -f4 -d" " | sort -u > users.txt
Get connection information:
Date/Time, Name, and IP Address
grep logged server.log | cut -f1,2,4,5 -d" "
Get disconnect information:
Date/Time, Name
grep disconnect server.log | cut -f1,2,4 -d" "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment