Skip to main content

Snowbridge target configuration

Stdout target is the default. We also support EventHub, HTTP, Kafka, Kinese, PubSub, and SQS targets.

Stdout target doesn't have any configurable options - when configured it simply outputs the messages to stdout.

Configuration options

Here is an example of the configuration:

hclassets/docs/configuration/targets/stdout-full-example.hcl
loading...

If you want to use this as a failure target, then use failure_target instead of target.

Batching

From version 5.0.0, all targets support configurable batching. Batching options are specified in a batching {} block inside the target's use block.

hcl
target {
use "http" {
url = "https://acme.com/x"

batching {
max_batch_messages = 50
max_batch_bytes = 1048576
max_message_bytes = 1048576
max_concurrent_batches = 5
flush_period_millis = 500
}
}
}

Each target has its own defaults for batching options. See the individual target pages for the defaults.

Batching optionDescription
max_batch_messagesMaximum number of messages in a single batch sent to the target.
max_batch_bytesMaximum total byte size of a batch.
max_message_bytesMaximum byte size of a single message. Messages exceeding this are sent to the failure target.
max_concurrent_batchesNumber of batches written concurrently (default: 5).
flush_period_millisInterval in milliseconds between timer-based batch flushes (default: 500).

If either of max_batch_messages or max_batch_bytes is reached before flush_period_millis elapses, the batch is sent immediately.

On this page

Want to see a custom demo?

Our technical experts are here to help.