Skip to content

Testing the `redis` source

Stephen Wakely edited this page Dec 12, 2022 · 1 revision

Setup Redis

Run a docker container:

docker run --name redis -p 6379:6379  -d redis

Setup Vector

Configure a source in Vector similar to:

sources:
  redis:
    type: redis
    url: redis://127.0.0.1:6379
    key: zorknork
    data_type: list

Insert data

Send data to Vector by running the Redis cli:

docker exec -it redis redis-cli

Push data onto our list in the Redis cli with:

127.0.0.1:6379> RPUSH zorknork noog
(integer) 1