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

Authentication

Authentication
FieldTypeRequiredDescription
credentialsCredentialsCredentials for GCP. Supports service account JSON, application-default credentials, or context-provided material via PossibleContextString.
Allowed values: storage-url, service-account, application-credentials

Behavior

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

Location

Location
FieldTypeRequiredDescription
bucket-namestringBucket Name.
object-nameObject NameRemote object name or field reference (via ObjectDestination). Supports folder-style paths using / separators.
Allowed values: name, field

Object Properties

Object Properties
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.
Default: false
guid-prefixstringOptional GUID prefix appended ahead of the generated identifier. Defaults to /.
guid-suffixstringOptional GUID suffix appended after the generated identifier.

Processing

Processing
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
preprocessorsOutput Preprocessor[]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

Reliability

Reliability
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.
Default: false

Schema

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.
Allowed values: path, key
application-credentialsApplication Credentialsone_ofApplication credentials.
Allowed values: path, key

Object Name Options

OptionNameTypeDescription
nameNamestringObject Name.
fieldFieldstringField containing the Object Name.

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).
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).
Default: false
wrap-as-jsonboolean (bool)Format the output batch as a JSON array.
Default: false

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

Mode Options

ValueNameDescription
putputPut Objects
deletedeleteDelete Objects

Batch - Mode Options

ValueNameDescription
fixedfixedFixed
documentdocumentDocument

Output Preprocessor Options

ValueNameDescription
gzipgzipGzip the output data
parquetparquetExtract the received data as JSON rows from a parquet file
base64base64Decode base64 as binary