papertrail-downloader

Crates.iopapertrail-downloader
lib.rspapertrail-downloader
version0.2.0
sourcesrc
created_at2020-08-23 19:50:50.739215
updated_at2021-11-11 01:35:04.378199
descriptionPapertrail parallel log archives downloader
homepagehttps://github.com/ndelvalle/papertrail-downloader
repositoryhttps://github.com/ndelvalle/papertrail-downloader
max_upload_size
id279916
size46,610
Nicolas del Valle (ndelvalle)

documentation

README

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
Commit count: 90

cargo fmt