Skip to content

synlay/logstash-filter-cache-redis

Repository files navigation

Logstash Filter Redis Cache Plugin

Build Status Coverage Status Gem Version GitHub license

This is a plugin for Logstash.

It is fully free and fully open source. The license is MIT, see LICENSE for further infos.

Documentation

This filter will store and retrieve data from Redis data cache. The fields source and target are used alternatively as data in- or output fields, while the value of a defined command like rpush will look for the corresponding event and use that value as the key. The following example for instance will store data from the event ProductEntity under the key based upon the data from the event ProductId:

filter {
    cache_redis {
        rpush => "ProductId"
        source => "ProductEntity"
    }
}

Developing

For further instructions on howto develop on logstash plugins, please see the documentation of the official logstash-filter-example.