andreyvit / download-papertrail-archives

A Golang script to download all missing archives from Papertrail

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

download-papertrail-archives

A Golang script to download all missing archives from Papertrail.

Usage

Build:

go install

Run:

download-papertrail-archives -token <TOKEN> -o <DIR>

where:

  • <TOKEN> is your Papertrail HTTP API token from the profile page,
  • <DIR> is the directory to save downloaded logs to.

Options

  • -token <TOKEN> sets the Papertrail HTTP API token

  • -o <DIR> sets output directory (default .)

  • -since <YYYY-MM-DD> only downloads logs on or after this date

  • -before <YYYY-MM-DD> only downloads logs before this date (NOT including the date), accepts today as a value

  • -timeout <DURATION> sets timeout for HTTP operations (default 30s)

  • -q enables quiet operation (don't print any progress information)

Changelog

  • 1.0.0 (2020-07-29) — initial release

About

A Golang script to download all missing archives from Papertrail

License:MIT License


Languages

Language:Go 83.4%Language:Makefile 16.6%