This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# Downloads 10 days of logs at a time, asynchronously. | |
# Env vars: | |
# MAX_DAYS: Number of days of logs to download | |
# PAPERTRAIL_API_KEY: Self explanitory, get from PT "Profile" page | |
# BUCKET_NAME: S3 Bucket to upload to | |
# LOG_PATH: Path inside S3 Bucket to save logs to | |
for i in $(seq 0 ${MAX_DAYS}) | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
681310603692036096 2016-06-19T22:12:08 2016-06-19T22:12:08Z 316301054 sidekiq-memory-test 54.166.122.243 Syslog Notice heroku/sidekiq.1 State changed from starting to up | |
681310611782848540 2016-06-19T22:12:10 2016-06-19T22:12:10Z 316301054 sidekiq-memory-test 107.22.70.154 Syslog Notice heroku/sidekiq.1 source=sidekiq.1 dyno=heroku.52364252.9ae5e115-6a39-4589-bb9e-97b3b85694a4 sample#load_avg_1m=0.00 sample#load_avg_5m=0.00 sample#load_avg_15m=0.00 | |
681310613028556801 2016-06-19T22:12:10 2016-06-19T22:12:10Z 316301054 sidekiq-memory-test 54.90.186.249 Local7 Info app/sidekiq.1 3 TID-ot1o6oln8 INFO: Bye! | |
681310613355712533 2016-06-19T22:12:10 2016-06-19T22:12:10Z 316301054 sidekiq-memory-test 174.129.88.207 Syslog Notice heroku/sidekiq.1 source=sidekiq.1 dyno=heroku.52364252.9ae5e115-6a39-4589-bb9e-97b3b85694a4 sample#memory_total=112.67MB sample#memory_rss=98.95MB sample#memory_cache=0.52MB sample#memory_swap=13.19MB sample#memory_pgpgin=38338pages sample#memory_pgpgout=28202pages sample#memory_quota=512.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response": { | |
"id": 123456789, | |
"user_id": 123456789, | |
"vehicle_id": 123456789, | |
"vin": "5YJ123456789", | |
"display_name": "Car Name", | |
"option_codes": "AD02....", | |
"color": null, | |
"tokens": [ |