Skip to content

Redis

Ingest events from Redis Pub/Sub channels or Redis Streams.

Messaging Enterprise edition binary json raw

input:
redis: {}
JSON
{
"input": {
"redis": {}
}
}

A ✓ marks a field that accepts a context variable such as {{ VARIABLE }}.

Field Type Required Description
pub-sub Pub/Sub
stream Stream
Field Type Required Description
strategy Strategy Backoff strategy to use (default exponential).
Allowed values: exponential, linear, fixed
base string Base delay before retrying (e.g. “200ms”).
max string Maximum delay between retries.
jitter ✓ boolean (bool) Whether to add jitter to retry delays.
Default: false
Field Type Required Description
max-attempts number (integer) Maximum attempts before giving up.
Examples: 42, 1.2e-10
forever ✓ boolean (bool) Retry indefinitely until cancelled.
Default: false
backoff Backoff Backoff strategy configuration.
Field Type Required Description
address url (string) ✅ Redis endpoint URI (for example redis://localhost:6379/0 or rediss://cache:6380/0).
Examples: https://example.com/path
username ✓ string Optional username override when the URI does not embed credentials.
password ✓ string Optional password override when the URI does not embed credentials.
database number (integer) Optional database index override when the URI does not select a database.
Examples: 42, 1.2e-10
retry Retry Retry configuration applied to reconnect attempts.
channels string[] Explicit Redis Pub/Sub channels to subscribe to.
patterns string[] Pattern subscriptions (PSUBSCRIBE) to attach alongside direct channels.
payload-mode Payload Mode Default: json
Allowed values: auto, json, raw, binary
client-name string Optional Redis client name set on the connection.
Field Type Required Description
strategy Strategy Backoff strategy to use (default exponential).
Allowed values: exponential, linear, fixed
base string Base delay before retrying (e.g. “200ms”).
max string Maximum delay between retries.
jitter ✓ boolean (bool) Whether to add jitter to retry delays.
Default: false
Field Type Required Description
max-attempts number (integer) Maximum attempts before giving up.
Examples: 42, 1.2e-10
forever ✓ boolean (bool) Retry indefinitely until cancelled.
Default: false
backoff Backoff Backoff strategy configuration.
Field Type Required Description
state-id string Optional explicit state id for runtime artifact persistence.
Field Type Required Description
address url (string) ✅ Redis endpoint URI (for example redis://localhost:6379/0 or rediss://cache:6380/0).
Examples: https://example.com/path
username ✓ string Optional username override when the URI does not embed credentials.
password ✓ string Optional password override when the URI does not embed credentials.
database number (integer) Optional database index override when the URI does not select a database.
Examples: 42, 1.2e-10
retry Retry Retry configuration applied to reconnect and read failures.
streams string[] Redis stream keys to read from.
start-id string Default starting ID used when no persisted cursor exists.
Default: $
start-ids map (string) Per-stream starting IDs that override start-id.
block-ms number (integer) Optional blocking read timeout in milliseconds.
Examples: 42, 1.2e-10
count number (integer) Optional maximum number of entries to read per XREAD.
Examples: 42, 1.2e-10
cursor Cursor Runtime cursor persistence settings.
payload-field field (string) Field in the Redis stream entry that should be treated as the logical payload.
Default: payload
Examples: data_field

Pub/Sub - Retry - Backoff - Strategy Options

Section titled “Pub/Sub - Retry - Backoff - Strategy Options”
Value Aliases Name Description
exponential exponential
linear linear
fixed fixed
Value Aliases Name Description
auto auto
json json
raw raw
binary binary

Stream - Retry - Backoff - Strategy Options

Section titled “Stream - Retry - Backoff - Strategy Options”
Value Aliases Name Description
exponential exponential
linear linear
fixed fixed