Crates.io | stream-logs-to-s3 |
lib.rs | stream-logs-to-s3 |
version | 0.1.5 |
source | src |
created_at | 2021-03-25 01:37:39.225291 |
updated_at | 2023-03-22 23:39:40.328504 |
description | Buffer text to S3, batching them up by size and/or time period. This is intended to be a replacement for rotatelogs on (e.g.) Apache HTTPD servers running in the cloud. |
homepage | https://github.com/ionosphere-io/stream-logs-to-s3 |
repository | https://github.com/ionosphere-io/stream-logs-to-s3.git |
max_upload_size | |
id | 373168 |
size | 136,532 |
Buffer logs to S3, batching them up by size and/or time period. This is
intended to be a replacement for rotatelogs
on (e.g.) Apache HTTPD servers
running in the cloud.
stream-logs-to-s3 [options] s3://bucket/path-template
-d, --duration #<unit>
-t, --tempdir directory
$TMPDIR
(if set),
/tmp
otherwise.-s, --size #<unit>>
-i, --input <filename>
-z, --gzip
-h, --help
stream-logs-to-s3
uses the standard AWS SDK / Rusoto
methods of specifying AWS credentials.
AWS_DEFAULT_REGION
/ AWS_REGION
us-east-1
.AWS_PROFILE
~/.aws/credentials
file.AWS_ACCESS_KEY_ID
/ AWS_SECRET_ACCESS_KEY
/ AWS_SESSION_TOKEN
If credentials are not specified, they are read from the EC2 or ECS metadata endpoint.
The path template can include the following variables. Timestamps are generated in the UTC timezone.
{host_id}
— The EC2 instance id, ECS task id, hostname, or IP address.{year}
— The current year.{month}
— The current month as a 2-digit string.{day}
— The current day as a 2-digit string.{hour}
— The current hour as a 2-digit string.{minute}
— The current minute as a 2-digit string.{second}
— The current second as a 2-digit string.{unique}
— A unique identifier to ensure filename uniqueness.To include a raw {
or }
in the output, double it: {{
/ }}
.
This program is dual licensed under the MIT and Apache-2.0 licenses.
Copyright © 2021 Ionosphere, LLC.