Redis
Redis (redis)
Section titled “Redis (redis)”Ingest events from Redis Pub/Sub channels or Redis Streams.
Messaging binary json raw
Minimal example
Section titled “Minimal example”input: redis: {}JSON
{ "input": { "redis": {} }}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
pub-sub |
Pub/Sub |
||
stream |
Stream |
Schema
Section titled “Schema”- Pub/Sub - Retry Fields
- Pub/Sub Fields
- Stream - Retry Fields
- Stream - Cursor Fields
- Stream Fields
- Pub/Sub - Payload Mode Options
Pub/Sub - Retry Fields
Section titled “Pub/Sub - Retry Fields”| 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) |
Pub/Sub Fields
Section titled “Pub/Sub Fields”| 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: jsonAllowed values: auto, json, raw, binary |
|
client-name |
string |
Optional Redis client name set on the connection. |
Stream - Retry Fields
Section titled “Stream - Retry Fields”| 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) |
Stream - Cursor Fields
Section titled “Stream - Cursor Fields”| Field | Type | Required | Description |
|---|---|---|---|
state-id |
string |
Optional explicit state id for runtime artifact persistence. |
Stream Fields
Section titled “Stream Fields”| 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: payloadExamples: data_field |
Pub/Sub - Payload Mode Options
Section titled “Pub/Sub - Payload Mode Options”| Value | Aliases | Name | Description |
|---|---|---|---|
auto |
auto | ||
json |
json | ||
raw |
raw | ||
binary |
binary |