Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
On Standalone (non-Eval) installations and distributed deployments, Logstash on the manager node outputs to Redis. Search nodes can then consume from Redis.
To see how many logs are in the Redis queue:
If the queue is backed up and doesn’t seem to be draining, try stopping Logstash on the manager node:
Then monitor the queue to see if it drains:
watch 'sudo so-redis-count'
We configure Redis to use 812MB of your total system memory. If you have sufficient RAM available, you may want to increase the
redis_maxmemory setting in
/opt/so/saltstack/local/pillar/global.sls. This value is in Megabytes so to set it to use 8 gigs of ram you would set the value to 8192.
Logstash on the manager node is configured to send to Redis. For best performance, you may want to ensure that
batch is set to
true and then tune the
ls_pipeline_batch_size variable to find the sweet spot for your deployment.
Logstash on search nodes pulls from Redis. For best performance, you may want to tune
ls_input_threads to find the sweet spot for your deployment.
Redis logs can be found at
/opt/so/log/redis/. Depending on what you’re looking for, you may also need to look at the Docker logs for the container:
sudo docker logs so-redis
For more information about Redis, please see https://redis.io/.