diff --git a/Content/Guides/syslog-ng-guide-admin/destination-s3-amazon.htm b/Content/Guides/syslog-ng-guide-admin/destination-s3-amazon.htm new file mode 100644 index 000000000..7eb125b27 --- /dev/null +++ b/Content/Guides/syslog-ng-guide-admin/destination-s3-amazon.htm @@ -0,0 +1,439 @@ + + +
+ + + +Available in
The s3() destination sends log messages to the
An already configured S3 bucket for programmatic access, and the related ACCESS_KEY and SECRET_KEY belonging to a user capable of accessing it.
If the venv(/usr/bin/syslog-ng-update-virtualenv) created by
To use the s3() driver, the scl.conf file must be included in the
@include "scl.conf"+
s3( + url("http://localhost:9000") + bucket("syslog-ng") + access-key("my-access-key") + secret-key("my-secret-key") + object-key("${HOST}/my-logs") + template("${MESSAGE}\n") +);+
Objects can be created based on the following strategies:
+Based on object size:
+The max-object-size() option configures
Based on timestamp:
+The object-key-timestamp() option can be used to set a datetime-related template, which is appended to the end of the object, for example: "${R_MONTH_ABBREV}${R_DAY}". When a log message arrives with a newer timestamp template resolution, the previous timestamped object gets completed and a new one is initiated with the new timestamp. If an older message arrives, it does not reopen the old object, but starts a new object with the key having an index appended to the old object.
+Based on timeout:
+The flush-grace-period() option sets the number of minutes to wait for new messages to arrive after the last one. If the timeout expires,
All of these strategies can be used separately, or together.
+The upload can be manipulated by the chunk-size(), upload-threads(), and the max-pending-uploads() options.
+The following options are specific to the s3() destination.
+ +Type: | +string | +
Default: | +N/A | +
Description: The ACCESS_KEY (used with secret-key())of the service account used to access the S3 bucket.
+Type: | +string | +
Default: | ++ |
Description: The name of the S3 bucket, for example, my-bucket.
+Type: | +string | +
Default: | +empty | +
Description: The ACL assigned to the object, if specified, for example, bucket-owner-read.
+The following values are available:
+authenticated-read
aws-exec-read
bucket-owner-full-control
bucket-owner-read
log-delivery-write
private
public-read
public-read-write
If an invalid value is defined, the default value is used.
+Type: | +string | +
Default: | +5MiB | +
Description: The size of log messages that
Type: | +boolean | +
Default: | +no | +
Description: The setting compression(yes) enables gzip compression, and implicitly adds a .gz suffix to the key of the created object. The level of the compression can be set using the compresslevel() option (0-9).
+Type: | +integer (0-9) | +
Default: | +9 | +
Description: This option only has an effect if the compression() option is set to yes. The level of the compression can be set using the compresslevel() option (0-9).
+Type: | +integer [minutes] | +
Default: | +60 | +
Description: After the grace period expires and no new messages are routed to the destination,
Type: | +number | +
Default: | +Use global setting. | +
Description: The number of messages that the output queue can store.
+Type: | +string | +
Default: | +5120GiB | +
Description: The maximal size of the S3 object. If an object reaches this size,
Type: | +integer | +
Default: | +32 | +
Description: The max-pending-uploads() and upload-threads() options configure the upload of the chunks. Uploading happens in multiple threads to minimize network overhead.
+upload-threads() limits the maximum number of parallel uploads.
+max-pending-uploads() limits the number of chunks that are waiting in the work queue of the upload threads to get uploaded.
+Type: | +template | +
Default: | +N/A | +
Description: The object key (or key name), that uniquely identifies the object in an Amazon S3 bucket.
+Type: | +template | +
Default: | ++ |
Description: The object-key-timestamp() option can be used to set a datetime-related template, which is appended to the end of the object.
+"${R_MONTH_ABBREV}${R_DAY}" ++
When a log message arrives with a newer timestamp template resolution, the previous timestamped object gets completed and a new one is initiated with the new timestamp. If an older message arrives, it does not reopen the old object, but starts a new object with the key having an index appended to the old object.
+Type: | +string | +
Default: | +N/A | +
Description: If the following error is displayed during the
Error checking the uniqueness of the persist names, please override it with persist-name option. Shutting down.+
This error occurs when identical drivers in multiple sources are used, for example,if two file sources are configured to read from the same file. In this case, set the persist-name() of the drivers to a custom string, for example, persist-name("example-persist-name1").
+Type: | +string | +
Default: | ++ |
Description: The regional endpoint where the bucket is stored, for example, us-east-1.
+Type: | +string | +
Default: | +N/A | +
Description: The SECRET_KEY of the service account (complementing the acces-key()) used to access the S3 bucket.
+Type: | +string | +
Default: | +STANDARD | +
Description: This option defines the storage class of the object.
+The following values are available:
+DEEP_ARCHIVE
GLACIER
GLACIER_IR
INTELLIGENT_TIERING
ONEZONE_IA
OUTPOSTS
REDUCED_REDUNDANCY
SNOW
STANDARD
STANDARD_IA
If an invalid value is defined, the default value is used.
+Type: | +integer | +
Default: | +8 | +
Description: This option defines the number of