Take logs from stdin then compress and send to S3.
Ideally you could couple this with a syslog remote server for the collection of all logs from systems pointed at it.
{
"cachedir": "/tmp/s3post",
"role_arn": "arn:aws:iam::<account>:role/<name>",
"region": "us-west-2",
"bucket": "<bucket>",
"prefix": "logs",
"logfile": "s3post.log"
}
Based off of the example config the logfile will be /tmp/s3post/s3post.log
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ git clone https://github.com/jkordish/s3post.rs.git
$ cd s3post.rs
$ cargo build --release
Binary will be target/release/s3post
$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ cargo install --git https://github.com/jkordish/s3post.rs.git