Accessing Redis cache for dynamic keys

While using redis input plugin, it requires a key to be specified in the configuration only.

Is there any way to build key using another data source for which we can use redis cache?

The same functionality is available for Memcache though.
https://www.elastic.co/guide/en/logstash/current/plugins-filters-memcached.html

I need to create a key using fields coming from the UDP packets.
input {
udp {
host => "127.0.0.1"
port => 5555
codec => netflow {
versions => [5, 9, 10]
}
}

redis {
host => ""
port => 6340
password => ""
}

}

redis is an input, memcache is a filter. logstash can build a key for a filter, but not for an input. Would referencing an environment variable help?

Then is there any filter available for redis cache or to be build in the future?

It is not supported by Elastic, but there is an open source redis filter.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.