Skip to main content
Version: Next

Redis

The Redis input reads from Redis with both standalone and cluster connection modes, and supports Subscribe (channels / patterns) and List consumption modes.

Configuration

FieldTypeRequiredDefaultDescription
typestringyesConstant value "redis"
modeobjectyesConnection mode (tagged enum), see table below
redis_typeobjectyesConsumption mode (tagged enum), see table below

mode

FieldTypeRequiredDescription
typestringyes"single" or "cluster"
urlstringyes (single)Standalone URL, e.g. redis://host:6379
urlsarray<string>yes (cluster)List of cluster node URLs

redis_type (subscribe)

FieldTypeRequiredDescription
typestringyes"subscribe"
subscribeobjectyesSubscription configuration, see below

subscribe:

FieldTypeRequiredDescription
typestringyes"channels" or "patterns"
channelsarray<string>yes (channels)List of channels
patternsarray<string>yes (patterns)List of patterns

redis_type (list)

FieldTypeRequiredDescription
typestringyes"list"
listarray<string>yesList of Redis list keys to consume

Examples

input:
type: "redis"
mode:
type: "single"
url: "redis://localhost:6379"
redis_type:
type: "subscribe"
subscribe:
type: "channels"
channels:
- "news"
- "events"
input:
type: "redis"
mode:
type: "single"
url: "redis://localhost:6379"
redis_type:
type: "list"
list:
- "tasks"
- "notifications"