Skip to content

S3

S3 (s3)

Write events to an S3 bucket.

Object Store Cloud binary json raw

Minimal example

output:
s3:
bucket-name: ~
object-name:
name: ~
JSON
{
"output": {
"s3": {
"bucket-name": null,
"object-name": {
"name": null
}
}
}
}

Contents

Fields

FieldTypeRequiredDescription
bucket-name LocationstringBucket Name.
object-name LocationObject NameName of object, either as text or from a field.
retry ReliabilityRetryHow to retry failed requests.
batch ProcessingBatchBatching input events together.
input-field Processingfield (string)Use the specified field as the content for the object.
Examples: data_field
mode BehaviorModePut or delete the object? Default is Put.
Allowed values: put, delete
region LocationstringS3 Region.
endpoint LocationstringS3 Endpoint, if needed.
disable-object-name-guid Object Propertiesboolean (bool)Disable the GUID prefix if you want the object name to be treated literally (this is disabled for deletes).
guid-prefix Object PropertiesstringGUID Prefix, will be prepended to the GUID, the default value is ”/”.
guid-suffix Object PropertiesstringGUID Suffix, will be appended to the GUID if specified.
access-key AuthenticationstringAccess Key ID.
secret-key AuthenticationstringSecret Key ID.
security-token AuthenticationstringSecurity Token.
session-token AuthenticationstringSession Token.
role-arn AuthenticationstringA Role ARN for assuming role using above credentials.
preprocessors ProcessingPreprocessors[]Preprocessors (process data before making it available for upload) these processors will be run in the order they are specified.
Allowed values: gzip, parquet, base64
track-schema Reliabilityboolean (bool)Check the schema of the written data and update __SCHEMA_NUMBER (written data must be JSON).

Reliability

Show fields
FieldTypeRequiredDescription
retryRetryHow to retry failed requests.
track-schemaboolean (bool)Check the schema of the written data and update __SCHEMA_NUMBER (written data must be JSON).

Processing

Show fields
FieldTypeRequiredDescription
batchBatchBatching input events together.
input-fieldfield (string)Use the specified field as the content for the object.
Examples: data_field
preprocessorsPreprocessors[]Preprocessors (process data before making it available for upload) these processors will be run in the order they are specified.
Allowed values: gzip, parquet, base64

Location

Show fields
FieldTypeRequiredDescription
bucket-namestringBucket Name.
object-nameObject NameName of object, either as text or from a field.
regionstringS3 Region.
endpointstringS3 Endpoint, if needed.

Behavior

Show fields
FieldTypeRequiredDescription
modeModePut or delete the object? Default is Put.
Allowed values: put, delete

Object Properties

Show fields
FieldTypeRequiredDescription
disable-object-name-guidboolean (bool)Disable the GUID prefix if you want the object name to be treated literally (this is disabled for deletes).
guid-prefixstringGUID Prefix, will be prepended to the GUID, the default value is ”/”.
guid-suffixstringGUID Suffix, will be appended to the GUID if specified.

Authentication

Show fields
FieldTypeRequiredDescription
access-keystringAccess Key ID.
secret-keystringSecret Key ID.
security-tokenstringSecurity Token.
session-tokenstringSession Token.
role-arnstringA Role ARN for assuming role using above credentials.

Schema

Object Name Options

OptionNameTypeDescription
nameNamestringObject Name.
fieldFieldstringField containing the Object Name.

Retry Fields

FieldTypeRequiredDescription
timeouttime-interval (string)timeout (e.g. 500ms, 2s etc. - default is 30).
Examples: 500ms, 2h
retriesnumber (integer)number of retries.
Examples: 42, 1.2e-10

Batch Fields

FieldTypeRequiredDescription
fixed-sizenumber (integer)maximum number of events in an output batch.
Examples: 42, 1.2e-10
modeModeIf ‘document’ send on end of document generated by input. If ‘fixed’, use fixed_size.
Allowed values: fixed, document
timeouttime-interval (string)interval after which the batch is sent, to keep throughput going (default 100ms).
Examples: 500ms, 2h
headermultiline-text (string)put a header line before the batch.
footermultiline-text (string)put a header line after the last line of the batch.
use-document-markerboolean (bool)Enrich the job metadata with a document marker (for document handling in batch mode).
wrap-as-jsonboolean (bool)Format the output batch as a JSON array.

Batch - Mode Options

ValueDescription
fixedFixed
documentDocument

Mode Options

ValueDescription
putPut Objects
deleteDelete Objects

Preprocessors Options

ValueDescription
gzipGzip the output data
parquetExtract the received data as JSON rows from a parquet file
base64Decode base64 as binary