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), acceptstoday
as a value -
-timeout <DURATION>
sets timeout for HTTP operations (default30s
) -
-q
enables quiet operation (don't print any progress information)
Changelog
- 1.0.0 (2020-07-29) — initial release