Description

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.

Usage

stream-logs-to-s3 [options] s3://bucket/path-template

Options

Environment variables

stream-logs-to-s3 uses the standard AWS SDK / Rusoto methods of specifying AWS credentials.

If credentials are not specified, they are read from the EC2 or ECS metadata endpoint.

Path template

The path template can include the following variables. Timestamps are generated in the UTC timezone.

To include a raw { or } in the output, double it: {{ / }}.

License

This program is dual licensed under the MIT and Apache-2.0 licenses.

Copyright © 2021 Ionosphere, LLC.