WARNING: Version 1.2 of Filebeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Redis Output
editRedis Output
editThe Redis output inserts the events in a Redis list. This output plugin is compatible with the Redis input plugin for Logstash.
Example configuration:
output: redis: # Set the host and port where to find Redis. host: "localhost" port: 6379 # Uncomment out this option if you want to store the topology in Redis. # The default is false. save_topology: true # Optional index name. The default is filebeat and generates filebeat keys. index: "filebeat" # Optional Redis database number where the events are stored # The default is 0. db: 0 # Optional Redis database number where the topology is stored # The default is 1. It must have a different value than db. db_topology: 1 # Optional password to authenticate with. By default, no # password is set. # password: "" # Optional Redis initial connection timeout in seconds. # The default is 5 seconds. timeout: 5 # Optional interval for reconnecting to failed Redis connections. # The default is 1 second. reconnect_interval: 1
Redis Output Options
editYou can specify the following options in the redis
section:
host
editThe host of the Redis server.
port
editThe port of the Redis server.
db
editThe Redis database number where the events are published. The default is 0.
db_topology
editThe Redis database number where the topology information is stored. The default is 1.
index
editThe name of the Redis list where the events are published. The default is "filebeat".
password
editThe password to authenticate with. The default is no authentication.
timeout
editThe Redis initial connection timeout in seconds. The default is 5 seconds.
reconnect_interval
editThe interval for reconnecting failed Redis connections. The default is 1 second.
bulk_max_size
editThe maximum number of events to buffer internally during publishing. The default is 2048.
Specifying a larger batch size may add some latency and buffering during publishing. However, for Redis output, this setting does not affect how events are published.
Setting bulk_max_size
to values less than or equal to 0 disables buffering in libbeat.