You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/chapter-destinations/destination-s3/_index.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,14 @@ s3(
60
60
61
61
All of these strategies can be used individually, or together.
62
62
63
+
The name of the object can be further modified by the following options:
64
+
65
+
-[`object-key-suffix()`](#object-key-suffix)
66
+
-`compression()`
67
+
68
+
<!-- object-key()object-key-timestamp()maxo-object-size()object-key-suffix().gz(if compression is enabled) -->
69
+
70
+
63
71
## Upload options
64
72
65
73
{{% param "product.abbrev" %}} uploads objects using the multipart upload API. {{% param "product.abbrev" %}} composes chunks locally. When a chunk reaches the size set in `chunk-size()` (by default 5 MiB), the chunk is uploaded. When an object is finished, the multipart upload is completed and S3 merges the chunks.
@@ -119,7 +127,9 @@ If you configure an invalid value, the default is used.
119
127
| Type: | boolean |
120
128
| Default: |`no`|
121
129
122
-
*Description:* Setting `compression(yes)` enables gzip compression, and implicitly adds a `.gz` suffix to the created object's key. You can set the level of the compression using the `compresslevel()` option (0-9).
130
+
*Description:* Setting `compression(yes)` enables gzip compression, and implicitly adds a `.gz` suffix to the very end of the created object's key. You can set the level of the compression using the `compresslevel()` option (0-9).
@@ -174,6 +184,8 @@ Available in {{< product >}} 4.8 and later.
174
184
175
185
*Description:* The maximal size of the S3 object. If an object reaches this size, {{% param "product_name" %}} appends an index ("-1", "-2", ...) to the end of the object key and starts a new object after rotation.
@@ -193,7 +205,20 @@ Available in {{< product >}} 4.8 and later.
193
205
| Type: | template |
194
206
| Default: | N/A |
195
207
196
-
*Description:* The [object key](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) (or key name), which uniquely identifies the object in an Amazon S3 bucket. Note that a suffix may be appended to this object key depending on the [naming strategies](#creating-objects) used. Example: `my-logs/${HOSTNAME}/`.
208
+
*Description:* The [object key](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) (or key name), which uniquely identifies the object in an Amazon S3 bucket. Note that a suffix may be appended to this object key depending on the [naming strategies](#creating-objects) and other options used. Example: `my-logs/${HOSTNAME}/`.
@@ -204,6 +229,8 @@ Available in {{< product >}} 4.8 and later.
204
229
205
230
*Description:* The `object-key-timestamp()` option can be used to set a datetime-related template, which is appended to the end of the object key, for example: `"${R_MONTH_ABBREV}${R_DAY}"`. When a log message arrives with a newer timestamp template resolution, the previous timestamped object gets finished and a new one is started with the new timestamp. If an older message arrives, it doesn`t reopen the old object, but starts a new object with the key having an index appended to the old object.
0 commit comments