Skip to content

Google Cloud Storage

Google Cloud Storage (gcs)

Write events to a Google Cloud bucket.

Block Store Cloud binary json raw

Minimal example

output:
gcs:
bucket-name: ~
credentials:
storage-url: ~
object-name:
name: ~
JSON
{
"output": {
"gcs": {
"bucket-name": null,
"credentials": {
"storage-url": null
},
"object-name": {
"name": null
}
}
}
}

Contents

Fields

FieldTypeRequiredDescription
bucket-name LocationstringBucket Name.
object-name LocationObject NameRemote object name or field reference (via ObjectDestination). Supports folder-style paths using / separators.
credentials AuthenticationCredentialsCredentials for GCP. Supports service account JSON, application-default credentials, or context-provided material via PossibleContextString.
retry ReliabilityRetryHow to retry operation if it fails.
batch ProcessingBatchConfigure batching before uploads; batching is recommended when writing many small events to reduce API calls.
input-field Processingfield (string)Use the specified field as the object payload. When omitted the entire event body is serialized according to the selected preprocessors.
Examples: data_field
mode BehaviorModePut or delete the object? Put uploads content (default), while Delete removes the named object.
Allowed values: put, delete
disable-object-name-guid Object Propertiesboolean (bool)Disable the autogenerated GUID prefix so the provided object name is used verbatim. This is forced off for delete operations.
guid-prefix Object PropertiesstringOptional GUID prefix appended ahead of the generated identifier. Defaults to /.
guid-suffix Object PropertiesstringOptional GUID suffix appended after the generated identifier.
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)Validate JSON payloads against the stored schema and maintain __SCHEMA_NUMBER metadata. Only available when the payload serializes to JSON.

Reliability

Show fields
FieldTypeRequiredDescription
retryRetryHow to retry operation if it fails.
track-schemaboolean (bool)Validate JSON payloads against the stored schema and maintain __SCHEMA_NUMBER metadata. Only available when the payload serializes to JSON.

Processing

Show fields
FieldTypeRequiredDescription
batchBatchConfigure batching before uploads; batching is recommended when writing many small events to reduce API calls.
input-fieldfield (string)Use the specified field as the object payload. When omitted the entire event body is serialized according to the selected preprocessors.
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 NameRemote object name or field reference (via ObjectDestination). Supports folder-style paths using / separators.

Behavior

Show fields
FieldTypeRequiredDescription
modeModePut or delete the object? Put uploads content (default), while Delete removes the named object.
Allowed values: put, delete

Object Properties

Show fields
FieldTypeRequiredDescription
disable-object-name-guidboolean (bool)Disable the autogenerated GUID prefix so the provided object name is used verbatim. This is forced off for delete operations.
guid-prefixstringOptional GUID prefix appended ahead of the generated identifier. Defaults to /.
guid-suffixstringOptional GUID suffix appended after the generated identifier.

Authentication

Show fields
FieldTypeRequiredDescription
credentialsCredentialsCredentials for GCP. Supports service account JSON, application-default credentials, or context-provided material via PossibleContextString.

Schema

Object Name Options

OptionNameTypeDescription
nameNamestringObject Name.
fieldFieldstringField containing the Object Name.

Credentials - Service Account Options

OptionNameTypeDescription
pathPathstringService Account File location.
Examples: /path/to/file, c:\users\joe\data\file.txt
keyKeystring

Credentials - Application Credentials Options

OptionNameTypeDescription
pathPathstringApplication Credential File Location.
Examples: /path/to/file, c:\users\joe\data\file.txt
keyKeystringApplication Credential in JSON format.

Credentials Options

OptionNameTypeDescription
storage-urlStorage UrlstringURL in the form gs:///path.
service-accountService Accountone_ofService Account credentials.
application-credentialsApplication Credentialsone_ofApplication credentials.

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