Skip to content

Redis

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

Messaging 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
count number (integer) The number of retry attempts. If unspecified, retries will continue indefinitely.
Examples: 42, 1.2e-10
pause duration (string) How long to pause before re-trying.
Accepts human-friendly formats, like 1m (for 1 minute) and 4h (for 4 hours)

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
count number (integer) The number of retry attempts. If unspecified, retries will continue indefinitely.
Examples: 42, 1.2e-10
pause duration (string) How long to pause before re-trying.
Accepts human-friendly formats, like 1m (for 1 minute) and 4h (for 4 hours)

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

Value Aliases Name Description
auto auto
json json
raw raw
binary binary