log archiver for pypi cdn logs
Project description
# PyPI CDN Log Archiver
Get raw logs from S3 like object store, written by the cdn
Archive and compress them
Upload archive back to S3 like object store, in a sane structure
Remove raw logs that were archived
# Usage
You’ll need to export some env variables to get started:
$ export ACCESS_KEY=<your_access_key> $ export SECRET_KEY=<your_access_key> $ export PYPI_LOG_BUCKET=<bucket_name> $ export S3_HOST=<s3_like_host> (e.g. s3.amazonaws.com, objects.dreamhost.com)
Optionally you can set the date to archive like so:
$ export PYPI_LOG_DATE=2014-02-11
You can enable some debug output with:
$ export DEBUG=10
If you don’t set PYPI_LOG_DATE, the script will default to looking for yesterdays date.
Now you should be able to run it:
$ python pypi-cdn-log-archiver.py 112373 bytes written to testpypi-cdn-logs/archive/2014/2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pypi-cdn-log-archiver-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e8f5f095650274d82aa0f1632047f063ac153955c100ab345df342b85b9378 |
|
MD5 | dbfeb2c8df783eada4c7534ed19c0932 |
|
BLAKE2b-256 | e634ba6e037682d4a21ddf09e78ab444ee363625960876373452fb35731e865f |
Hashes for pypi_cdn_log_archiver-0.1.7-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95231f4355f30c295a94c0e250fedb7f751b4d4af1237c277d3545b3b06875a2 |
|
MD5 | 1453c8d3e6dc25b1705d445761a4f775 |
|
BLAKE2b-256 | 76802bfd684305d15c6765ebaac4ed364bf78fef06048bfc386dafc84dd02c37 |