Skip to content

Instantly share code, notes, and snippets.

@ColinShark
Created September 28, 2020 03:55
Show Gist options
  • Save ColinShark/23e67a1fb00e5cd0799a1446fd5b9950 to your computer and use it in GitHub Desktop.
Save ColinShark/23e67a1fb00e5cd0799a1446fd5b9950 to your computer and use it in GitHub Desktop.
Upload Server Logs to https://mclo.gs
#!/bin/bash
curl -s -X POST --data-urlencode "content=$(<logs/latest.log)" https://api.mclo.gs/1/log | \
python3 -c "import sys, json; print(json.load(sys.stdin)['url'])"%

Easily upload your Minecraft Server Logs to mclo.gs with a single script.

Put the above bash file into your servers root directory (eg ~/mc/log.sh), chmod +x log.sh it, and then you can execute it with ./log.sh. You'll get a simple plaintext URL in the stdout which you can copy-paste into your browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment