跳到主要内容
版本:1.x

RedisStream

Input plugin : RedisStream [Streaming]

Description

Read data from Redis.

Options

nametyperequireddefault value
hoststringyes-
prefKeystringyes-
queuestringyes-
passwordstringno-
maxTotalnumberno200
maxIdlenumberno200
maxWaitMillisnumberno2000
connectionTimeoutnumberno5000
soTimeoutnumberno5000
maxAttemptsnumberno5
host [string]

redis cluster server host

prefKey [string]

redis key prefix , Splicing mode: prefKey + ':' + key

queue [string]

redis queue name , Data stored to queue

password [string]

redis password

maxTotal [number]

redis maxTotal config

maxIdle [number]

redis maxIdle config

maxWaitMillis [number]

redis maxWaitMillis config

connectionTimeout [number]

redis connectionTimeout config

soTimeout [number]

redis soTimeout config

maxAttempts [number]

redis maxAttempts config

Example

RedisStream {
host = "127.0.0.1:7000,127.0.0.1:7001,127.0.0.1:7002"
prefKey = "api"
queue = "test"
password = "root"
}