Skip to content

Instantly share code, notes, and snippets.

@jweir
Created October 14, 2019 20:04
Show Gist options
  • Save jweir/7ac9b42a5a0f1d951bb852845945140c to your computer and use it in GitHub Desktop.
Save jweir/7ac9b42a5a0f1d951bb852845945140c to your computer and use it in GitHub Desktop.
Copy log files to S3
for file in `ls access*.gz` ; do
curl -X PUT -d @$file http://localhost:8081/data/logs/$(hostname)/$(date -Idate)/$file
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment