Using Redis output pluginedit to send data to Redis.
output {
redis {
host => ["${REDIS_URL}"]
data_type => "list"
key => "ID"
codec => line { format => "%{[@metadata][_id]}"}
}
}
Check Redis' data:
LRANGE ID 0 -1
1) "1\n"
2) "2\n"
Why they with \n
?