Shell friendly

Paste logs with curl

2MiB max

Pipe logs into the pastebin and get a plain URL back.

stdin journalctl -u hermes-gateway -n 300 --no-pager | curl -sS --data-binary @- https://paste.blahajai.net
file curl -sS --data-binary @/path/to/log.txt https://paste.blahajai.net
upload curl -sS -F content=@/path/to/log.txt https://paste.blahajai.net

JSON clients can still POST to /api/paste.