Crates.io | papertrail-downloader |
lib.rs | papertrail-downloader |
version | 0.2.0 |
source | src |
created_at | 2020-08-23 19:50:50.739215 |
updated_at | 2021-11-11 01:35:04.378199 |
description | Papertrail parallel log archives downloader |
homepage | https://github.com/ndelvalle/papertrail-downloader |
repository | https://github.com/ndelvalle/papertrail-downloader |
max_upload_size | |
id | 279916 |
size | 46,610 |
papertrail-downloader
is a tool to download Papertrail archive logs. Especially useful when downloading a large number of archives.
This program is faster than the papertrail suggested approach because papertrail-downloader
download logs in parallel.
cargo install papertrail-downloader
Download the latest released binary and add executable permissions:
wget -O papertrail-downloader "https://github.com/ndelvalle/papertrail-downloader/releases/download/v0.2.0/papertrail-downloader-x86-64-linux"
chmod +x papertrail-downloader
papertrail-downloader 0.2.0
ndelvalle <nicolas.delvalle@gmail.com>
Papertrail parallel log archives downloader
USAGE:
papertrail-downloader [OPTIONS] --start-date <start-date> --token <token>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-e, --end-date <end-date> End date using 'YYYY-MM-DD' format [default: 2021-11-10]
-o, --output-dir <output-dir> Output directory to store downloaded logs [default: ./]
-s, --start-date <start-date> Start date using 'YYYY-MM-DD' format
-t, --token <token> Papertrail API token from https://papertrailapp.com/account/profile
$ ./papertrail-downloader --start-date 2020-01-01 --token xxxxxxxxxxxxxxxxxxx --output-dir ./ppt-logs