Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1022 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 1022 Bytes

s3post.rs Build Status

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.

config

{
  "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

building

$ 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

simple install

$ curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
$ cargo install --git https://github.com/jkordish/s3post.rs.git