Status : core plugin, unit tested and maintained.
This plugin is used on log server to receive logs from redis channels. json_event format is expected.
They are two method to get message from redis :
- Publish / subscribe : The
subscribe
redis command will be used. Parameterschannel
andpattern_channel
are needed. - Queue. This
blpop
redis command will be used.key
parameter is needed.
Example 1:
Config using url: input://redis://localhost:6379?channel=logstash_channel
Config using logstash format:
input {
redis {
host => localhost
port => 6379
channel => logstash_channel
}
}
Parameters:
host
: ip of the redis server.port
: port of the redis server.auth_pass
: password to use when connecting to Redistype
: to specify the log type, to faciliate crawling in kibana. Example:type=redis
. No default value.method
:pubsub
orqueue
Default value:queue
.channel
: Channel for publish / subscribe. No default value.pattern_channel
: use channel as pattern. Default value : false.key
: Queue name for queue. No default value.unserializer
: more doc at unserializers. Default value tojson_logstash
.