#archive #parallel #downloader #download #logs #papertrail

app papertrail-downloader

Papertrail parallel log archives downloader

2 unstable releases

0.2.0 Nov 11, 2021
0.1.0 Aug 23, 2020

#55 in #downloader

MIT license

14KB
144 lines

papertrail-downloader

Rust

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.

Install

Cargo

cargo install papertrail-downloader

Manually

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

Use

Command line interface

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

Example

$ ./papertrail-downloader --start-date 2020-01-01 --token xxxxxxxxxxxxxxxxxxx --output-dir ./ppt-logs

Dependencies

~9–25MB
~346K SLoC